Commit 83c100cd by BellCodeEditor

save project

parent 22354288
Showing with 15 additions and 0 deletions
class Hero:
def __init__(self,hp,attack):
self.HP=hp
self.Attack=attack
self.level=1
YaSe=Hero(5000,250)
def UpGrade(SB):
SB.level+=1
SB.HP+=300
SB.Attack+=30
UpGrade(YaSe)
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