Commit 8f4d12d2 by BellCodeEditor

save project

parent 1f5b53f0
Showing with 7 additions and 7 deletions
class hero:
def _hero_(self,name,hp,attack):
self.levl=1
self.name=name
self.hp=hp
self.attack=attack
yase=hero("埡瑟",300,20)
print("yase的血量为:",yase.hp)
\ No newline at end of file
self.levl=1
self.name=name
self.hp=hp
self.attack=attack
yase=hero("ya瑟",300,20)
print("ya瑟的血量为:",yase.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