Commit 01ce8032 by BellCodeEditor

save project

parent 07ba2658
Showing with 8 additions and 0 deletions
...@@ -10,3 +10,11 @@ k=Hero('K',5600,199) ...@@ -10,3 +10,11 @@ k=Hero('K',5600,199)
print("y的属性:",yase.attack,yase.hp) print("y的属性:",yase.attack,yase.hp)
print("h的属性:",hy.attack,hy.hp) print("h的属性:",hy.attack,hy.hp)
print("k的属性:",k.attack,k.hp) print("k的属性:",k.attack,k.hp)
def uprrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
uprrade()
uprrade()
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