Commit 1b1b53ca by BellCodeEditor

save project

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