Commit 1633dfea by BellCodeEditor

save project

parent f47689a4
Showing with 25 additions and 0 deletions
class Hero:
def __init__(self,name,HP,attack):
self.lever=999
self.name=name
self.HP=HP
self.attack=attack
yase=Hero("垭瑟",9999,999999)
houyi=Hero("后裔",99999,9999)
FM=Hero("范马勇次郎"1000000,99999999999,9999999999999)
print(yase.lever)
print(yase.HP)
print(yase.attacc)
def zenjia1():
yase.lever=yase.lever+1
yase.HP=yase.HP+999999
yase.attacc=yase.attacc+999999
def zenjia2():
houyi.lever=yase.lever+1
houyi.HP=yase.HP+999999
houyi.attacc=yase.attacc+999999
def zenjia3():
FM.lever=yase.lever+1
FM.HP=yase.HP+999999
FM.attacc=yase.attac1+999999
\ 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