Commit 77530f6e by BellCodeEditor

save project

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