Commit cc2df6ec by BellCodeEditor

save project

parent 22354288
Showing with 17 additions and 0 deletions
class Hero:
def __init__(self,name,Hp,attack):
self.level=1
self.name=name
self.Hp=Hp
self.attack=attack
def u1p(self):
self.attack=self.attack+10000
self.Hp=self.Hp+99999999999
self.level=self.level+9999
YaSe=Hero("YaSe",500,500)
a123=Hero("a123",500,50000)
YaSe.u1p()
a123.u1p()
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