Commit 1b1b53ca by BellCodeEditor

save project

parent 2ac7553a
Showing with 6 additions and 4 deletions
class Hero:
def __init__(self):
def __init__(self,name,Hp,ak):
self.level=1
self.Hp=3000
self.attack=2000
YaSe=Hero()
self.name=name
self.Hp=Hp
self.ak=ak
YaSe=Hero(YaSe,500,500)
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