{"id":201048,"student_id":2589,"content":"import random\n\n# 產生 0 - 9 的隨機整數。\nprint(random.randrange(10)) \n\n# 產生 0 - 99 的隨機整數。\nprint(random.randrange(100))\n\n# 產生 10 - 19 的隨機整數。\nprint(random.randrange(10, 20))\n\n# 產生 20 - 99 的隨機整數。\nprint(random.randrange(20, 100))\n\n# 10、12、14、... 28 隨機挑一個數值,不包含 30。\nprint(random.randrange(10, 30, 2))\n\n# 50、55、60、... 95 隨機挑一個數值,不包含 100。\nprint(random.randrange(50, 100, 5) )","created_at":"2020-11-03T18:37:31.889+08:00","updated_at":"2022-10-12T15:22:29.636+08:00","name":"考前筆記_範例","language":"python","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/201048/78c61e7f1ead7988a942b4dbd445e807.jpg"},"parent_id":201047,"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":46,"hashid":"6rps98wpg","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦