Commit 3c519dae by BellCodeEditor

save project

parent b1435c4b
Showing with 9 additions and 0 deletions
class hero:
def __init__ (self,name,hp,attack):
self.hp=hp
self.name=name
yase=hero("娅瑟",300,20)
hoyi=hero("后羿",250,23)
print("血量",yase.hp)
print("血量",hoyi.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