{"id":201046,"student_id":2589,"content":"# 整數 10。\na = int('10') \n\n# 將字串轉成浮點數 10.5。\nb = float('10.5') \n\n# 將數值轉成字串 '123'。\nc = str(123) \n\n# 計算串列的長度取得數值 3。\nd = len([10, 20, 30]) \n\n# 計算字串長度取得數值 7。\ne = len('今天天氣真好!') \n\nprint(a, b, c, d, e)","created_at":"2020-11-03T18:35:27.516+08:00","updated_at":"2022-10-12T15:16:27.577+08:00","name":"考前筆記_範例","language":"python","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/201046/78c61e7f1ead7988a942b4dbd445e807.jpg"},"parent_id":201044,"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":42,"hashid":"5j3s9nwqd","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
截圖
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦