Commit d6be1384 by BellCodeEditor

save project

parent b18439db
Showing with 7 additions and 5 deletions
......@@ -4,7 +4,9 @@ class Heros:
self.level=1
self.attack=attack
self.hp=hp
wukong=Heros("悟空",36,500)
yase=Heros("亞瑟",36,500)
print(yase.name+"的hp:"+str(yase.hp))
\ No newline at end of file
yase=Heros("亞瑟",27,300)
def updata():
yase.hp+=50
updata()
print(yase.name+"的hp:"+str(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