-6
我正在研究語法遊戲(Python),但它不工作。我如何解決它? 代碼:語法遊戲(Python)不工作,我該如何解決它?
print("Welcome! Type in 'Enter' (without apostrophes) to begin")
start = input
if start == "Enter":
print "Fill in the blanks: I __ a boy"
answer = input
if answer != "am":
print "Wrong answer! Try again: I __ a boy"
if answer == "am":
print "Congratulations!"
它返回:
Welcome! Type in 'Enter' (without apostrophes) to begin Wrong answer! Try again: I __ a boy