{"id":874100,"student_id":3760,"content":"from game import *\nfrom random import choice, randrange\n\nset_backdrop('bg.jpg')\n\nadjs = [\n '無盡', '絕望', '超越', '黑暗', '神秘', \n '永恆', '狂暴', '傳說', '輝煌', '終極', \n '毀滅', '潛藏', '禁忌', '兇猛', '不朽', \n '燃燒', '幽暗', '深淵', '蛻變', '迷失'\n]\n\nnouns = [\n '劍', '炮', '甲', '刃', '弓', '心', '魂', '拳',\n '深淵', '聖靈', '天罰', '永夜', '黑暗'\n '破滅', '力量', '煉獄', '眷顧', '命運', \n '災厄', '幻影', '怒火', '巨龍', '夢魘', \n '天啟', '祕密', '時間', '祭壇', '影子', \n '劫難', '靈魂', '暴風', '終焉', '鐵拳'\n]\n\nverbs = [\n '降臨', '咆哮', '斬擊', '展現', '復仇', \n '挑戰', '侵襲', '旋風', '侵蝕', '蘇醒', \n '輪回', '獻祭', '驅逐', '破碎', '轉變', \n '擊潰', '瘋狂', '彌漫', '撕裂', '召喚', \n '震顫', '封印', '淨化', '鎖鏈', '凝聚'\n]\n\n#招式一:形容詞 + 名詞\ndef type_1():\n return choice(adjs) + 'の' + choice(nouns)\n \n#招式二:名詞 + 名詞\ndef type_2():\n return choice(nouns) + '之' + choice(nouns)\n\n#招式三:招式一 + 動詞\ndef type_3():\n return type_1() + '之' + choice(verbs)\n \n#招式四:招式二 + 動詞\ndef type_4():\n return type_3() + choice(verbs)\n\n#招式五:招式一 + 招式三\ndef type_5():\n return type_1() + '與' + type_3()\n \n# 測試使用\nfor i in range(100):\n print(type_1())\n\n#從技能組中隨機挑選一個\nskills = [type_1(), type_2(), type_3(), type_4(), type_5()]\nsk = choice(skills)\n\ndef loop():\n draw_text(sk, 50, 50, 'white', 60)\nforever(loop)\n\n","created_at":"2024-10-30T02:08:46.054+08:00","updated_at":"2024-10-30T20:44:16.196+08:00","name":"中二技能產生器_完整版","language":"python","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/874100/6cff6d0cbc7779175c75df22e9d82697.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":15,"hashid":"gk4s8ywkd","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":19118221,"file_name":"bg.jpg","project_id":874100,"asset_id":788113,"created_at":"2024-10-30T02:09:09.572+08:00","updated_at":"2024-10-30T02:09:09.572+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦