Commit d8c63e39 by BellCodeEditor

save project

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