Commit 7ea64934 by BellCodeEditor

save project

parent a73a6a47
Showing with 9 additions and 0 deletions
class Hero:
def __init__(self,name,age,height):
self.name = name
self.age = age
self.height = height
yase=Hero("亚瑟,300,20")
hoyi=Hero("后羿,250,23")
print(yase.hp)
print(houyi.age)
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