Commit 77530f6e by BellCodeEditor

save project

parent 15d4e8d0
Showing with 9 additions and 6 deletions
class Hero:
def __init__(self,name,hp,AP):
self.level=1
self.l=1
self.name=name
self.hp=hp
self.AP=AP
wc=Hero('厕所',10,1)
lb=Hero('厕所里的老八',10000000,10000)
print('厕所的血量是',wc.hp)
print('厕所里的老八的血量是',lb.hp)
\ No newline at end of file
def Up():
wc.hp+=100
wc.AP+=15
wc.l+=1
wc=Hero('厕所',100,10)
while True:
Up()
print('厕所的血量是',wc.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