Commit 3647b461 by BellCodeEditor

save project

parent 462564e5
Showing with 5 additions and 5 deletions
......@@ -5,7 +5,8 @@ class Heros:
m.hp = hp
m.level = 1
m.attack = attack
wuyifang = Heros("吴谦",0.5,5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
cxk = Heros("坤坤",10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,1)
print(wuyifang.name+"hp"+str(wuyifang.hp))
print(cxk.name+"hp"+str(wuyifang.hp))
\ No newline at end of file
monkey = Heros("孙猴子",5,50000)
def updata():
monkey.hp += 50
updata()
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