Commit d8c63e39 by BellCodeEditor

save project

parent 72cb9ca4
Showing with 8 additions and 8 deletions
class Heor(): class Heor():
def __init__(self): def __init__(self,name,hp,attack):
self.Level=1 self.level=1
self.Hp=300 self.name=name
self.Attack=20 self.hp=hp
yase=Heor() self.attack=attack
print("亚瑟的血量是",yase.Hp) yase=Heor("垭瑟",300,20)
print("垭瑟的攻击力是",yase.Attack) print("亚瑟的血量",yase.hp)
\ 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