Commit a3e4f081 by BellCodeEditor

save project

parent 74bf3e22
Showing with 7 additions and 2 deletions
class Hero:
def __init__(self,name,hp,attack):
self.name=name
self.hp=hjp
\ No newline at end of file
self.hp=hp
self.level=1
self.attacl=attack
yase=Hero("亚瑟",300,20)
houy=Hero("后羿",250,23)
print(yase.name)
\ 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