Commit ca39d120 by BellCodeEditor

save project

parent f0d3b47c
Showing with 2 additions and 2 deletions
...@@ -4,9 +4,9 @@ class Heros: ...@@ -4,9 +4,9 @@ class Heros:
self.levle=1 self.levle=1
self.attack=attack self.attack=attack
self.name=name self.name=name
wukong=Heros(“悟空” ,36,7777777999999) wukong=Heros('悟空' ,36,7777777999999)
def updata(): def updata():
wukong.hp +=65 wukong.hp +=65
updata() updata()
print( wukong.name+"的hp:"+str(wukong.hp)) print( wukong.name+"的hp:"+str(wukong.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