Commit b9e03443 by BellCodeEditor

save project

parent e4eefa34
Showing with 11 additions and 1 deletions
......@@ -5,8 +5,17 @@ class Hero:
self.hp=hp
self.attack=attack
yase=Hero('yase',300000000000000000,200000)
def shengji():
yase.level =yase.level+1
yase.hp = yase.hp+ 1000
yase.attack = yase.attack+20
print(yase.attack)
shengji()
shengji()
print(yase.attack)
hy=Hero('hy',860000000000,900000000000000000000000000000000000000000000000000000000000)
k=Hero('K',56000000000,199000000)
k=Hero('K',56000000000,1990000)
print(yase.attack)
print(hy.attack)
print(k.attack)
\ No newline at end of file
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