-2
import time
print ("Hello and welcome to my text adventure!")
time.sleep(2)
Name = input ("What is your name?")
print ("Hello " + Name)
time.sleep(2)
print ("You must choose between joining the Guild or protecting the Girl.")
time.sleep(3)
G = input ("Which do you choose? Guild/Girl")
if: G = "Guild"
print ("So you chose the Guild. Interesting.")
else print ("So you chose the Girl. How chivalrous.")
# If statements not working.
我不明白這是不是工作,我試着移動冒號周圍有點看看它是否會工作,無濟於事...我是很新的這一點,這是我的A-Level的課程計算,所以我需要幫助...簡單if語句無效的語法
@aga *我很新的這一點,這是我的A-等級計算課程作業* - 可能這個人是python的新手,在這個 –
中沒有任何題外話這個問題似乎是無關緊要的,因爲它是關於一個微不足道的語法錯誤, elp未來的訪客 – ekhumoro