feedback 2
user_0100208
plain_text
3 years ago
5.9 kB
6
Indexable
total=[]
#Q1
while True:
print("Q1: 您覺得這家酒吧的氣氛適合?")
print("a.派對 b.聚會 c.約會 d.單人行 e.以上皆是 f.其他")
x1=input()
try:
if x1 != "a" and x1 !="b" and x1 !="c" and x1 !="d" and x1 !="e" and x1!="f":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f")
else:
total.append(x1)
if x1=="f":
print ("告訴我們你的想法?")
y1=input()
total.append(y1)
break
else: break
#Q2
while True:
print("Q2: 您覺得這家酒吧音樂如何?")
print("a.音樂品味很好 b.音樂品味不錯 c.沒意見 d.音樂品味不好 e.音樂品味很糟 f.其他")
x2=input()
try:
if x2 != "a" and x2 !="b" and x2 !="c" and x2 !="d" and x2 !="e" and x2!="f":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f")
else:
total.append(x2)
if x2=="f":
print ("告訴我們你的想法?")
y2=input()
total.append(y2)
break
else: break
#Q3
while True:
print("Q3: 您覺得這家酒吧環境如何?")
print("a.十分乾淨 b.乾淨 c.沒意見 d.不太好 e.非常糟 f.其他")
x3=input()
try:
if x3 != "a" and x3 !="b" and x3 !="c" and x3 !="d" and x3 !="e" and x3 !="f":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f")
else:
total.append(x3)
if x3=="f":
print ("告訴我們你的想法?")
y3=input()
total.append(y3)
break
else: break
#Q4
while True:
print("Q4: 您覺得這家酒吧的酒價位如何?")
print("a.很貴(一杯400以上) b.偏貴(一杯300以上) c.普通(一杯200以上) d.便宜(一杯150以上) e.超便宜(150以下) f.其他")
x4=input()
try:
if x4 != "a" and x4 !="b" and x4 !="c" and x4 !="d" and x4 !="e" and x4 !="f":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f")
else:
total.append(x4)
if x4=="f":
print ("告訴我們你的想法?")
y4=input()
total.append(y4)
break
else: break
#Q5
while True:
print("Q5: 您覺得這家酒吧的炸物價位如何?")
print("a.很貴(一份400以上) b.偏貴(一份300以上) c.普通(一份200以上) d.便宜(一份150以上) e.超便宜(150以下) f.其他 g.沒有點")
x5=input()
try:
if x5 != "a" and x5 !="b" and x5 !="c" and x5 !="d" and x5 !="e" and x5 !="f" and x5 !="g":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f,g")
else:
total.append(x5)
if x5=="f":
print ("告訴我們你的想法?")
y5=input()
total.append(y5)
break
else: break
#Q6
while True:
print("Q6: 您覺得這家酒吧的食物如何?")
print("a.很好吃 b.好吃 c.普通 d.不好吃 e.很不好吃 f.其他 g.沒有點")
x6=input()
try:
if x6 != "a" and x6 !="b" and x6 !="c" and x6 !="d" and x6 !="e" and x6 !="f" and x6 !="g":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f,g")
else:
total.append(x6)
if x6=="f":
print ("告訴我們你的想法?")
y6=input()
total.append(y6)
break
else: break
#Q7
while True:
print("Q7: 您覺得這家酒吧的酒品質如何?")
print("a.整體來說品質很好 b.某些酒品質不錯 c.整體來說都很普通 d.某些酒品質很糟 e.整體來說品質都很糟 f.其他 g.沒有點")
x7=input()
try:
if x7 != "a" and x7 !="b" and x7 !="c" and x7 !="d" and x7 !="e" and x7 !="f" and x7 !="g":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f,g")
else:
total.append(x7)
if x7=="f":
print ("告訴我們你的想法?")
y7=input()
total.append(y7)
break
else: break
#Q8
while True:
print("Q8: 您覺得這家酒吧何種酒類最值得推薦?")
print("a.啤酒 b.雞尾酒 c.蒸餾酒 d.shot e.其他 f.沒有點")
x8=input()
try:
if x8 != "a" and x8 !="b" and x8 !="c" and x8 !="d" and x8 !="e" and x8 !="f":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f")
else:
total.append(x8)
if x8=="e":
print ("告訴我們你的想法?")
y8=input()
total.append(y8)
break
else: break
#Q9
while True:
print("Q9: 您覺得這家酒吧何種食物最值得推薦?")
print("a.炸物 b.輕食 c.正餐 d.甜點 e.其他 f.沒有點")
x9=input()
try:
if x9 != "a" and x9 !="b" and x9 !="c" and x9 !="d" and x9 !="e" and x9 !="f":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f")
else:
total.append(x9)
if x9=="e":
print ("告訴我們你的想法?")
y9=input()
total.append(y9)
break
else: break
#Q10
while True:
print("Q10: 您會多推薦這間酒吧給你認識的人?")
print("a.非常推薦 b.推薦 c.沒意見 d.不推薦 e.非常不推薦 f.其他")
x10=input()
try:
if x10 != "a" and x10 !="b" and x10 !="c" and x10 !="d" and x10 !="e" and x10 !="f":
raise KeyboardInterrupt
except KeyboardInterrupt:
print ("Error! 請輸入a,b,c,d,e,f")
else:
total.append(x10)
if x10=="f":
print ("告訴我們你的想法?")
y10=input()
total.append(y10)
break
else: break
print("感謝您的回饋!")
print(total)Editor is loading...