所以我有这个游戏:如何让功能转到另一个功能?
import sys
def Start():
print("Hello and welcome to my first Python game. I made it for fun and because I am pretty bored right now.")
print("I hope you enjoy my EPIC TEXT GAME")
play = input("do you want to play? (Y/N) ")
if play == "Y":
game()
if play == "N":
sys.exit()
def game():
print("That's pretty much what I've done so far! :P -- yea yea, it's nothing -- IT IS!. Bye now")
input("Press enter to exit")
如果键入“Y”我想去游戏()。它没有。
出于好奇,你perhpas编写“Y”(小写'y'?) – Torxed 2013-04-09 12:07:10
另外,Python版本是非常重要的,我假设Python3.X .. – Torxed 2013-04-09 12:08:28
假设它是python 3因为打印功能,所以在这里输入()是好的 – wim 2013-04-09 12:08:56