{"id":169156,"student_id":3232,"content":"import game\nimport random\n\ncelebrity = game.create_sprite(\"戈登拉姆齊.jpg\")\ncelebrity.x = 400\ncelebrity.y = 500\n\n# 建立串列\nproverb = [\"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\"]\n\n# 產生隨機數(範圍在串列長度內)\nindex = random.randint(0, len(proverb) - 1)\n\ndef loop():\n global index\n # 顯示文字\n # print(str(proverb[index]))\n game.draw_text(str(proverb[index]), 200, 100, \"black\", 70)\ndef rand():\n global index\n # 產生隨機數\n index = random.randint(0, len(proverb) - 1)\n# space按下偵測\ngame.on(\"keydown\", \"space\", rand)\ngame.forever(loop)","created_at":"2020-07-22T08:57:44.049+08:00","updated_at":"2020-07-22T09:57:13.731+08:00","name":"梗圖產生器_S 副本","language":"python","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/169156/dfdccce0914926c14282c7e768570ea2.jpg"},"parent_id":162842,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":66,"hashid":"meysdgew","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2925668,"file_name":"戈登拉姆齊.jpg","project_id":169156,"asset_id":232995,"created_at":"2020-07-22T08:57:44.054+08:00","updated_at":"2020-07-22T08:57:44.054+08:00"},{"id":2925669,"file_name":"愛因斯坦.jpg","project_id":169156,"asset_id":232978,"created_at":"2020-07-22T08:57:44.055+08:00","updated_at":"2020-07-22T08:57:44.055+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦