本來想說寫個中文的行不行,果然試試是不行的,哈哈哈哈
"清晨的一縷陽光灑下,你懶慵慵的伸了個懶腰..."
answer = raw_input("你想? > ")
if"起床"
or"上班"
in answer:
go_work()
elif
"睡覺"
or"賴床"
in answer:
sleep()
else:
"再回答次~"
morning()
defsleep
"鬧鈴一次又一次響起..."
answer = raw_input("你會? > ")
if"起床"
or"上班"
in answer:
go_work()
elif
"睡覺"
or"賴床"
in answer:
gameover()
else:
"再回答次~"
sleep()
defgo_work
"你坐在辦公桌前,對著電腦..."
answer = raw_input("你在做什麼? > ")
if"等死"
or"混吃"
or"發呆"
in answer:
gameover()
elif
"努力"
or"認真"
or"工作"
in answer:
"公升職加薪當上總經理,出任ceo,迎娶白富美,走向人生巔峰。"
else:
"再回答次~"
go_work()
defgameover
"遊戲結束,認真幹活"
exit(0)
morning()
笨辦法學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加分習題36
python版本 3 若有錯誤,敬請指出 模組名稱 測試.py 我可能是個傻姑娘.加分習題36 def a print 吃西紅柿炒蛋時,你常常煩惱是該先吃西紅柿還是先雞蛋嗎?print a 是 nb 否 answer input if answer.upper a b elif answer.upp...
笨辦法學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...