Commit b5b2f627 by BellCodeEditor

save project

parent 95c0ea83
Showing with 7 additions and 6 deletions
class hero:
def _init_(self):
self.level=1
self.hp=300
self.attach=80
yase=Hero()
print(yase.hp)
def _init_(self,name,hp,attack):
self.name=mame
self.hp=hp
self.attack=8attack
亚瑟=Hero("亚瑟",300,40)
print(亚瑟.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