Commit b5b2f627 by BellCodeEditor

save project

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