{"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":251,"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"}]
Orange Apple Learning Platform
My Projects
View Project Page
Export
Remix
Import
Delete
Screenshot
繁中
简中
English
日本語
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer