我对此有疑问,我无法让 2 个单独的 if 语句相互匹配。例如,我想将 A1==2" 与 A4=="1" 匹配。请帮助!!!(忽略 TROLO,只是临时结束。)
print ("You find yourself in a dark room, do you... (1) Try to find a way out... or... (2) Sit down and think.")
A1 = input('>>')
if A1 == '1':
print ("You go into panic, you begin to feel dizzy and lightheaded...")
print ("Do you (1) Sit down and try to relax... or... (2) Slow down, but keep searching.")
elif A1 == '2':
A2 = input('>>')
print ("You sit down and catch your breath for a minute.")
print ("Do you (1) Get back up and keep feeling your way around ... or ... (2) Lay down for a mintute or two longer.")
A1 = input('>>')
if A1 == '2':
print ("You sit down and catch your breath for a minute.")
print ("Do you (1) Get back up and keep feeling your way around ... or ... (2) Lay down for a mintute or two longer.")
input ("TROLOLOLO")