我使用Python 3.0和打印功能無法正常工作ASD應該(U會揣摩出)Python - 爲什麼打印功能不工作?
import os
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) ")
def game2():
print("asd")
input("asdsa")
def game1():
print("THIS SHOULD BE PRINTED!! BUT IT'S NOT!!")
word1 = input("what is the word? ")
if word1 == "password":
game2()
else:
os._exit(1)
if play == "Y":
game1()
if play == "N":
os._exit(1)
一切工作,但該行那邊。爲什麼?
請不要寫「你也會找出其中」。告訴我們你得到了什麼錯誤。幫助我們幫助你。 – YXD 2013-04-09 12:28:54
並修復您的縮進。 – 2013-04-09 12:29:07
你的錯誤在哪裏? 我正在運行Python2.X並且無法測試您的代碼,但是如果您提供錯誤代碼,錯誤輸出或哪一行是受影響的行,我可能會提供幫助。 – Torxed 2013-04-09 12:29:19