-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