Commit 09f7896c by BellCodeEditor

save project

parent 3b575b4e
Showing with 9 additions and 7 deletions
class hero:
def __hero__(self):
self.level=1
self.hp=300
self.attack=20
class Hero:
def __init__(self, name , hp , attach):
self.level = 1
self.name = name
self.hp=hp
self.attach=attach
yase=hero()
\ No newline at end of file
yase=Hero("亚瑟",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