Commit c0e2f2ce by BellCodeEditor

save project

parent ab2e5c89
Showing with 12 additions and 0 deletions
...@@ -10,3 +10,14 @@ k=Hero('K',5600,199) ...@@ -10,3 +10,14 @@ k=Hero('K',5600,199)
print(yase.attack,yase) print(yase.attack,yase)
print(hy.attack,hy) print(hy.attack,hy)
print(k.attack) print(k.attack)
def niganma():
yase.level=yase.level+1
yase.hp=yase.hpz+50
yase.attack=yase.attack+4
yase = Hero("亚瑟"300,20)
print('yas',yase.hp)
niganma()
niganma()
print('yase'yase.hp)
\ 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