{"id":212424,"student_id":3760,"content":"import game\n\ngame.set_backdrop('bg.png')\n\na = 0 \nb = 0\nc = 0\n\ndef loop():\n game.draw_text('上底 ' + str(a), 425, 150, 'white', 60)\n game.draw_text('下底 ' + str(b), 425, 680, 'white', 60)\n game.draw_text('高 ' + str(c), 327, 400, 'white', 60)\n \n area = (a + b) * c / 2\n game.draw_text('面積:' + str(area), 400, 800, 'white', 60)\n\ndef onclick():\n global a, b, c\n a = int(input('輸入上底:'))\n b = int(input('輸入下底:'))\n c = int(input('輸入高:'))\n \ngame.forever(loop)\ngame.on('click', onclick)","created_at":"2020-12-15T21:47:10.870+08:00","updated_at":"2020-12-15T21:47:33.459+08:00","name":"基礎語法 - 數學運算:梯形計算器 範例","language":"python","screenshot":{"url":null},"parent_id":207530,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":32,"hashid":"jzmseegmd","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3720530,"file_name":"bg.png","project_id":212424,"asset_id":285665,"created_at":"2020-12-15T21:47:10.875+08:00","updated_at":"2020-12-15T21:47:10.875+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦