Commit a08ed77e by BellCodeEditor

save project

parent 53879317
Showing with 21 additions and 0 deletions
#class Hero:
# def __init__(sf):
# sf.HP=11
# sf.fight=23
# sf.MP=180
#qizong=Hero()
#print(qizong.HP)
#print(qizong.fight)
#print(qizong.MP)
class Hero:
def __init__(sf,name,HP,MP):
sf.HP=HP
sf.name=name
sf.MP=MP
qizong=Hero("qizong"11180)
#print(qizong)
def sb():
qizong.HP=qizong.HP+1
qizong.MP=qizong.MP+20
qizong.live=qizong.live+1
\ 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