Commit a9434e07 by BellCodeEditor

save project

parent b4dc3f7c
Showing with 3 additions and 3 deletions
class Hero:
def __init__(self,name,hp,attack):
self.name = "yase"
self.name =name
self.level=10
self.hp=1000
self.attack=20
self.hp=hp
self.attack=attack
yase=Hero()
print(yase.hp)
yase = Hero("牙涩",1000,20)
......
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