python版本:3 若有錯誤,
敬請指出 模組名稱:測試.py
我可能是個傻姑娘...
#加分習題36
def a():
print("吃西紅柿炒蛋時,你常常煩惱是該先吃西紅柿還是先雞蛋嗎?")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
b()elif answer.upper() == "b":
d()else:
print("請輸入對應的字母")
def b():
print("你敢不懼人恥笑.牽著鴕鳥去逛長安街嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
c()elif answer.upper() == "b":
f()def c():
print("你經常為了睡覺時.手要擺在**而失眠嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
e()elif answer.upper() == "b":
g()def d():
print("早上睡醒時.經常煩惱該先上廁所還是該先刷牙嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
f()elif answer.upper() == "b":
h()def e():
print("你膽敢在非常感傷的畢業典禮上瘋狂的說笑話嗎?")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
i()elif answer.upper() == "b":
j()def f():
print("別人講了個非常難笑的笑話.你膽敢不笑嗎?")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
g()elif answer.upper() == "b":
j()def g():
print("你敢不懼他人訕罵.穿著海灘褲去參加重要宴會嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
k()elif answer.upper() == "b":
l()def h():
print("你討厭的人送你免衝的水晶馬桶.你會收下嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
j()elif answer.upper() == "b":
i()def i():
print("你很想和流浪狗玩"主人親狗"的遊戲嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
k()elif answer.upper() == "b":
o()def j():
print("你叫了一碗牛肉麵.老闆卻端來一碗魚丸.你會吃下它嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
m()elif answer.upper() == "b":
k()def k():
print("你敢用我發明的.馬桶型冰溫冷三段漱口機嗎?")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
p()elif answer.upper() == "b":
l()def l():
print("與你爭辯中的朋友給你乙個蛋塔.要你住口.你肯答應嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
o()elif answer.upper() == "b":
n()def m():
print("你很想念故事給動物園的猴子聽嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
n()elif answer.upper() == "b":
i()def n():
print("你會因為討厭公司裡的訂書機.而辭去工作嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
q()elif answer.upper() == "b":
o()def o():
print("監考老師在你座位附近最來走去.你回瞪他嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
i()elif answer.upper() == "b":
p()def p():
print("陌生人要請你吃好吃的火腿炒飯.你會接受嗎?")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
t()elif answer.upper() == "b":
s()def q():
print("你嚼口香糖時.都用牙齒中固定的一邊嚼嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
answer = "a"
answer()
elif answer.upper() == "b":
s()def i():
print("吃蠶豆時.你會連殼帶肉一起吞下嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
answers_c()
elif answer.upper() == "b":
answers_d()
def s():
print("我說你是神經病.你會承認嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
answers_b()
elif answer.upper() == "b":
answers_a()
def t():
print("我說你以後可能會變成神經病.你會相信嗎? ")
print("a:是\nb:否")
answer = input(">")
if answer.upper() == "a":
answers_b()
elif answer.upper() == "b":
answers_d()
def answers_a():
print("你是個不折不扣的神經病.即使你不承認也沒用.因為光憑你有這麼大的耐心做完這些題目就足已證")
print("明了.希望你在工作上好好的發揮出你的耐心美德和頑強性格.將來不排除有出人頭地的可能. ")
def answers_b():
print("你是一群神經病中比較善良的哪乙個.但並不因次就代表你的症狀就比別人輕.")
print("反爾你要擔心的是.你是這一群神經病中.")
print("最有可能受到其他人影響而使症狀再加重的人.希望你沒事少和別人講話. ")
def answers_c():
print("你是乙個性格豪爽的神經病.雖然現在的症狀滿嚴重的.不過請不要心灰意冷.")
print("只要多接觸一些有趣的事物.你的精神狀態將會因你的樂觀性格而逐漸正常化")
print("但是!要改掉參加各種危險活動的習慣. ")
def answers_d():
print("你是神經病中的神經病!簡直病入膏肓了!更可怕的是.")
print("你雖然口口聲聲的說:"我絕不是神經病"")
print("可你的潛意識卻告訴自己."我是神經病中的王"你該多讀f君的作品.接受**了.")
a()
笨辦法學python加分習題30
python版本 3 若有錯誤,敬請指出 模組名稱 測試.py 加分習題30 people 30 cars 40 buses 15 if cars people print we should take the cars.elif cars people print we should not ta...
笨辦法學python加分習題38
python版本 3 若有錯誤,敬請指出 模組名稱 測試.py 加分習題38 states cities cities ny new york cities or portland print 10,1 print ny stae has cities ny print or state has c...
笨辦法學Python習題35 加分習題
加分習題 1.把這個遊戲的地圖畫出來,把自己的路線也畫出來。2.改正你所有的錯誤,包括拼寫錯誤。3.為你不懂的函式寫註解。記得文件註解該怎麼寫嗎?4.為遊戲新增更多元素。通過怎樣的方式可以簡化並且擴充套件遊戲的功能呢?5.這個 gold room 遊戲使用了奇怪的方式讓你鍵入乙個數字。這種方式會導致...