Commit e66fc4a7 by BellCodeEditor

save project

parent 0338deee
Showing with 10 additions and 4 deletions
......@@ -2,6 +2,12 @@ class Hero():
def __init__(self,name,hp,attack):
self.name=name
self.hp=hp
self.attack=attack
yese=Hero("亚瑟",999999,99999)
\ No newline at end of file
self.attack=attack
def yp():
"亚瑟".attack=yese.attack+100
"亚瑟".hp=hp+100
yese=Hero("亚瑟",999999,99999)
print(self.hp)
print(self.attack)
print(self.name)
\ 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