Commit 9b02a5ce by BellCodeEditor

save project

parent 98a4b515
Showing with 10 additions and 2 deletions
list
\ No newline at end of file
class Hero:
def __init__(self,name,hp, attack):
self.name=name
self.hp=hp
self.attack=attack
zhongkui = Hero("钟馗",3478,80)
yuange = Hero("元歌",1459,90)
print(zhongkui.hp)
print(yuange.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