每当我加载我的.py时,它立即关闭

时间:2017-03-30 19:51:07

标签: python

我是Python的新手,我正在创建一个多路径游戏,但每当我在.py中打开它时,它立即关闭!所以,如果有人能帮助我,我会非常感激!

继承我的代码:

def Roadto1stWin():
print("You have just joined the world of CounterStrike")
print("3 Hours later")
print("You have now got to rank 2 so you can finally play comp")
print("You find yourself playing a game of Comp on the map mirage")
print("Now that you have got to pistol round where do you go?")
print("Mid? B? or A?")
a = input("Type mid, b or a then hit 'Enter'.").lower()
if a ==("mid"):
   print("Okay nice you are going Mid")
   print("Where should you watch from?")
   print("Connector? Short? or Window?")
   b = input("Type connector, short or window Then hit 'Enter'.").lower()
   if b ==("connector"):
      print ("They rush B and kill the rest of your team and you lose the round")
      print ("Now your team are questioning your mid ability!")
      print ("Do you fight back and try to win the argument? or do you just carry on playing")
      c = input ("Type fight or play then hit 'Enter'.").lower()
      if c ==("fight"):
         print ("Your TeamMates end up not liking you and kick you")
      elif c ==("play"):
         print ("Another one of your teammates goes mid instead of you!")
         print ("You have decided to go B since there is only 1 at b")
         print ("Now your Teammate dies instantly at mid")
         print ("The enemy team win this round as well")
         print ("Now do you complain or play")
         d = input ("Type complain or play then hit 'Enter'.").lower()
         if d == ("play"):
            print ("Your team are mad at you for no voting to kick him so you get kicked")
            print ("The End")
         elif d == ("complain"):
              print ("Nice your team stand up with you and you kick the player")
              print ("Now that the player is gone your team have good chemistry")
              print ("You end up winning the game well done!")
        if b == ("short"):
           print ("You die instantly and since your team are full of Russians you get kicked")
           print ("The End")
        if b == ("window"):
           print ("You kill 3 of the enemies rushing mid and your teammates praise you!")
           print ("Now a second teammate has pushed short killing the player you were gonna kill!")
           print ("What do you do?")
           print ("argue at him or leave it alone")
           e = input ("Type argue or leave it then hit 'Enter'.").lower()
           if e == ("argue"):
              print ("Your team are toxic and don't like your attitude so they kick you")
              print ("The end")
           elif e == ("leave it"):
              print ("You get on well with each other and win the game")

Roadto1stWin()

这是代码! 谢谢你的回复

0 个答案:

没有答案