Commit 68927860 by BellCodeEditor

save project

parent df381954
Showing with 8 additions and 1 deletions
......@@ -4,4 +4,11 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("亚瑟",500,75)
yase=Hero("亚瑟",500,7)
def upgrabe()
yase.level+=1
yase.hp+=50
yase.attack+=5
upgrabe()
print(yase.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