Commit 3647b461 by BellCodeEditor

save project

parent 462564e5
Showing with 5 additions and 5 deletions
...@@ -5,7 +5,8 @@ class Heros: ...@@ -5,7 +5,8 @@ class Heros:
m.hp = hp m.hp = hp
m.level = 1 m.level = 1
m.attack = attack m.attack = attack
wuyifang = Heros("吴谦",0.5,5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) monkey = Heros("孙猴子",5,50000)
cxk = Heros("坤坤",10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,1) def updata():
print(wuyifang.name+"hp"+str(wuyifang.hp)) monkey.hp += 50
print(cxk.name+"hp"+str(wuyifang.hp)) updata()
\ No newline at end of file print(monkey.name+"der血量是"+str(monkey.hp))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment