Commit f9604370 by BellCodeEditor

save project

parent 8b4b036a
Showing with 11 additions and 2 deletions
class class Hero:
\ 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=Hero("YaSe",500,500)
a123=Hero("a123",500,50000)
print(YaSe.Hp)
print(a123.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