{"id":202896,"student_id":10,"content":"import game #載入遊戲套件\n\ndef onclick():\n h = input('身高:')\n w = input('體重:')\n \n h = float(h)\n w = float(w)\n \n bmi = w / h / h\n \n if bmi \u003e 18.5:\n game.game.set_backdrop('slim.png')\n \n elif bmi \u003e 24:\n game.game.set_backdrop('normal.png')\n \n else:\n game.game.set_backdrop('fat.png')\n \n \ngame.on('click', onclick) #當畫面被點擊時執行 onclick 函式","created_at":"2020-11-10T11:35:03.554+08:00","updated_at":"2021-01-04T11:30:57.564+08:00","name":"bmi 體重計(預設版)","language":"python","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/202896/48fe68828a164e05511ae16eab10abb5.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":246,"hashid":"gk4skgzkv","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3504109,"file_name":"fat.png","project_id":202896,"asset_id":108288,"created_at":"2020-11-10T11:35:33.660+08:00","updated_at":"2020-11-10T11:35:33.660+08:00"},{"id":3504110,"file_name":"normal.png","project_id":202896,"asset_id":108289,"created_at":"2020-11-10T11:35:33.663+08:00","updated_at":"2020-11-10T11:35:33.663+08:00"},{"id":3504111,"file_name":"slim.png","project_id":202896,"asset_id":108290,"created_at":"2020-11-10T11:35:34.329+08:00","updated_at":"2020-11-10T11:35:34.329+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦