Commit f713e14c by BellCodeEditor

save project

parent 22354288
Showing with 14 additions and 0 deletions
class yu:
def __init__(self,HP,attack,name):
self.LV=15
self.HP=HP
self.attack=attack
self.name=name
def LVUP(self):
self.LV+=1
self.HP+=50
self.attack+=520
xianyu=yu(500,100,"xianyu")
xianyu.LVUP()
print(xianyu.HP)
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