{"id":218355,"student_id":2002,"content":"import game\ngame.set_backdrop(\"bg.jpg\")\ngame.create_sound(\"bgm.mp3\")\nanswer = random.randrange(1,101);\nlow = 0\nhigh = 101\ndef loop():\n game.draw_text(answer, 10, 10, \"white\", 50)\n game.draw_text(low, 320, 680, \"black\", 100)\n game.draw_text(high, 750, 680, \"black\", 100)\ndef onclick():\n global low, high\n guess = int(input(\"請輸入一個1~100的數字\"))\n if guess \u003e low and guess \u003c high:\n if guess == answer:\n game.set_backdrop(\"bingo.jpg\")\n game.create_sound(\"bingo.mp3\")\n stop()\n if guess \u003c answer:\n game.set_backdrop(\"too_low.jpg\")\n low = guess\n game.create_sound(\"lol.mp3\")\n if guess \u003e answer:\n game.set_backdrop(\"too_high.jpg\")\n high = guess\n game.create_sound(\"lol.mp3\")\n\ngame.forever(loop)\ngame.on(\"click\", onclick)\n","created_at":"2021-01-10T13:47:13.401+08:00","updated_at":"2023-07-19T14:07:36.396+08:00","name":"終極密碼(預設版) 副本","language":"python","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/218355/a2ee5aa49613a444d795e2cc9fc1f9fb.jpg"},"parent_id":194468,"plugin":"import game\nimport random","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":48,"hashid":"9ygspnenk","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3857679,"file_name":"bingo.mp3","project_id":218355,"asset_id":267825,"created_at":"2021-01-10T13:47:13.407+08:00","updated_at":"2021-01-10T13:47:13.407+08:00"},{"id":3857680,"file_name":"lol.mp3","project_id":218355,"asset_id":267826,"created_at":"2021-01-10T13:47:13.421+08:00","updated_at":"2021-01-10T13:47:13.421+08:00"},{"id":3857681,"file_name":"bgm.mp3","project_id":218355,"asset_id":267827,"created_at":"2021-01-10T13:47:13.433+08:00","updated_at":"2021-01-10T13:47:13.433+08:00"},{"id":3857682,"file_name":"bingo.jpg","project_id":218355,"asset_id":267828,"created_at":"2021-01-10T13:47:13.434+08:00","updated_at":"2021-01-10T13:47:13.434+08:00"},{"id":3857683,"file_name":"too_high.jpg","project_id":218355,"asset_id":267829,"created_at":"2021-01-10T13:47:13.435+08:00","updated_at":"2021-01-10T13:47:13.435+08:00"},{"id":3857684,"file_name":"too_low.jpg","project_id":218355,"asset_id":267830,"created_at":"2021-01-10T13:47:13.436+08:00","updated_at":"2021-01-10T13:47:13.436+08:00"},{"id":3857685,"file_name":"bg.jpg","project_id":218355,"asset_id":267831,"created_at":"2021-01-10T13:47:13.437+08:00","updated_at":"2021-01-10T13:47:13.437+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦