Commit 3f62b6ea by BellCodeEditor

save project

parent 529adfb7
Showing with 14 additions and 4 deletions
class hero:
def
\ No newline at end of file
class hero: class hero:
def __init__(self): def __init__(self,name,hp,attack):
self.level=1 self.level=1
self.hp=300 self.name=name
self.attack=99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 self.hp=hp
self.attack=attack
chenlong=hero() chenlong=hero("chenlong",999,99)
#print(chenlong.hp)
laoba=hero("laoba",500,130)
xitele=hero("xitele",300,70)
geerdan=hero("geerdan",300,70)
print(chenlong.hp) print(chenlong.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