Commit 7f494420 by BellCodeEditor

save project

parent 52cbcd3b
Showing with 10 additions and 2 deletions
......@@ -2,8 +2,16 @@ class Hero:
def __init__(self,ff,aa):
self.ff=ff
self.aa=aa
lufei=Hero(31,5000)
suolong=Hero(31,4000)
lufei=Hero(1,5000)
suolong=Hero(1,4000)
def up():
lufei.ff+=1
lufei.aa+=500
def up2():
suolong.ff+=1
suolong.aa+=500
up()
up2()
print("路飞的等级为",lufei.ff)
print("路飞的能力为",lufei.aa)
print("索隆的等级为",suolong.ff)
......
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