Commit a6d5538a by BellCodeEditor

save project

parent a02cfe2d
Showing with 10 additions and 0 deletions
......@@ -4,7 +4,16 @@ class hero:
self.name=name
self.hp=hp
self.attask=attask
def level():
self.level=self.level+1
self.hp=self.hp+100
self.attask=self.attask+9999
yase=hero("垭瑟",300,20)
houyi=hero("后羿",240,999)
print(yase.hp)
print(houyi.attask)
def level():
yase.level=yase.level+1
yase.hp=yase.hp+100
yase.attask=yase.attask+9999
\ 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