Commit 15353410 by BellCodeEditor

save project

parent babb9cf8
Showing with 7 additions and 7 deletions
class hero(): class hero():
def __init__(self): def __init__(self,name,hp,attack):
self.leave=1 self.name=name
self.hp=450 self.hp=hp
self.attack=10 self.attack=attack
yase=hero() yase=hero('亚瑟',450,10)
print(yase.hp) print(yase.name)
\ No newline at end of file \ 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