Commit 3c305c6a by BellCodeEditor

save project

parent 6757ee0a
Showing with 7 additions and 7 deletions
......@@ -4,17 +4,17 @@ class hero:
self.hp=hp
self.attack=attack
self.name=name
LuBan=hero('鲁班',1,2500,200)
HouYi=hero('后羿',1,3000,230)
LuBan=hero('鲁班',1,2500,230)
HouYi=hero('后羿',1,3000,180)
def a():
LuBaqn.level+=1
LuBan.hp+=500
LuBan.attack+=100
print(LuBan.name)
print(LuBan.level)
print(LuBan.hp)
print(LuBan.attack)
def a():
LuBan.level+=1
LuBan.hp+=500
LuBan.attack+=100
a()
print(LuBan.name)
print(LuBan.level)
print(LuBan.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