Commit 4331c44c by BellCodeEditor

save project

parent 54ca3669
Showing with 10 additions and 7 deletions
...@@ -4,13 +4,16 @@ class hero(): ...@@ -4,13 +4,16 @@ class hero():
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
def fuck(self):
self.leveo=self.leveo+1
self.hp=self.hp+50
self.attack=self.attack+20
yunzhongjun=hero(1,"云中君",1652,200) yunzhongjun=hero(1,"云中君",1652,200)
yao=hero(1,"瑶",2102,10) yao=hero(1,"瑶",2102,10)
#print("云中君的血量为"+str(yunzhongjun.hp)) #print("云中君的血量为"+str(yunzhongjun.hp))
#print("瑶的攻击力为"+str(yao.attack)) #print("瑶的攻击力为"+str(yao.attack))
def fuck():
yunzhongjun.leveo=yunzhongjun.leveo+1 yunzhongjun.fuck()
yunzhongjun.hp=yunzhongjun.hp+50 yao.fuck()
yunzhongjun.attack=yunzhongjun.attack+20 print("云中君的血量为"+str(yunzhongjun.hp))
fuck() print("瑶的血量为"+str(yao.hp))
print("云中君的血量为"+str(yunzhongjun.hp)) \ No newline at end of file
\ 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