{"id":817567,"student_id":10,"content":"from game import *\n\ncard = create_sprite('ss.png', 's.png', 'a.png', 'b.png')\nmoney = 10\n\ndef loop():\n if card.opacity \u003c 1: card.opacity += 0.1\n draw_text(money, 10, 10, 'black' if money \u003e 0 else 'red', 50)\n\ndef go():\n global money\n money -= 10\n card.opacity = 0\n \n rand = random()\n if rand \u003c 0.01: card.costume_id = 3\n elif rand \u003c 0.05: card.costume_id = 3\n elif rand \u003c 0.10: card.costume_id = 3\n else: card.costume_id = 3\n \ncard.on('click', go)","created_at":"2024-08-12T15:59:11.214+08:00","updated_at":"2024-08-12T16:30:28.465+08:00","name":"條件判斷","language":"python","screenshot":{"url":null},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":47,"hashid":"9ygsrrzky","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":18043971,"file_name":"cloud.png","project_id":817567,"asset_id":302343,"created_at":"2024-08-12T15:59:11.219+08:00","updated_at":"2024-08-12T15:59:11.219+08:00"},{"id":18043972,"file_name":"bg.jpg","project_id":817567,"asset_id":302344,"created_at":"2024-08-12T15:59:11.220+08:00","updated_at":"2024-08-12T15:59:11.220+08:00"},{"id":18043973,"file_name":"calm.mp3","project_id":817567,"asset_id":302345,"created_at":"2024-08-12T15:59:11.222+08:00","updated_at":"2024-08-12T15:59:11.222+08:00"},{"id":18043974,"file_name":"koding.png","project_id":817567,"asset_id":302346,"created_at":"2024-08-12T15:59:11.223+08:00","updated_at":"2024-08-12T15:59:11.223+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦