{"id":201049,"student_id":2589,"content":"import random\n\n# 產生 0 - 1 的隨機小數。\nprint(random.random())\n\n# 產生 0 - 100 的隨機小數。\nprint(random.random()*100)\n\n#產生 50 - 150 的隨機小數。\nprint(random.random()*100 + 50)","created_at":"2020-11-03T18:38:25.805+08:00","updated_at":"2022-10-12T15:24:09.816+08:00","name":"考前筆記_範例","language":"python","screenshot":{"url":null},"parent_id":201048,"plugin":"import game\ngame.setBackdrop(\"#000000\");\n\nclock = 0\ndef loop():\n global clock\n if (clock // 50) % 2 == 0:\n game.draw_text(\"執 行 完 成 , 請 查 看 主 控 台 ! _\", 60, 60, '#fff', 50)\n else:\n game.draw_text(\"執 行 完 成 , 請 查 看 主 控 台 ! \", 60, 60, '#fff', 50)\n clock += 1\n\ngame.forever(loop)","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":39,"hashid":"ej9s2dv3z","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦