1 #coding: utf-8 2 print "王小狗丑不丑?丑→1;不丑→2" 3 4 answer = raw_input(">") 5 6 if answer == "1": 7 print "恭喜你,你的选择很正确!" 8 9 elif answer == "2": 10 print "要不,你再考虑一下? 我确定→1;还要再想想→2;随便吧→3" 11 real_answer = raw_input(">") 12 if real_answer == "1": 13 print "昧着良心说话会被打的!" 14 elif real_answer != "1": 15 print "你是善良的,可不能因为你的善良,就委屈自己做出错误的决定!" 16 print "再给你一次机会回答吧,丑→1;真的丑→2" 17 real_real_answer = raw_input(">") 18 if real_real_answer == "2" or real_real_answer == "1": 19 print "恭喜你,可以去睡觉了!" 20 else: 21 print "不好好做题,你想作甚王小丑!" 22 23 else: 24 print "不好好做题,你想作甚王小丑!" 25 26 else: 27 print "不好好做题,你想作甚王小丑!"
输出结果: