Commit cd534eb4 by BellCodeEditor

save project

parent 04873cf3
Showing with 3 additions and 2 deletions
class hero: class hero:
def __init__(self): def __init__(self,name,hp,attack):
self.lever=1 self.lever=1
self.hp=300 self.name=name
self.hp=hp
self.attack=20 self.attack=20
zhouyu=hero() zhouyu=hero()
print(zhouyu.hp) print(zhouyu.hp)
......
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