Commit b6e64520 by BellCodeEditor

save project

parent 6eb40b14
Showing with 6 additions and 4 deletions
......@@ -7,8 +7,9 @@ class Hero:
yase=Hero('亚瑟',300,200,1)
houyi=Hero('后羿',250,230,1)
kai=Hero('凯',560,400,2)
def a:
self.level=self.level+1
self.hp= self.hp+100
self.attack= self.attack+200
def a():
kai.level=kai.level+1
kai.hp= kai.hp+100
kai.attack= kai.attack+200
a()
print(kai)
\ 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