{"id":348270,"student_id":10,"content":"\"\"\"\n程式會用 True 和 False 來表示比較ㄏ的結果。\n\n首先我們看到前三行程式,\n第一行會比較左邊是否大於右邊,結果是沒有,因此變數 a 會儲存 False 表示比較的結果,\n第二行會比較左邊是否小於右邊,結果是沒有,因此變數 b 會儲存 False 表示比較的結果,\n第三行會比較左邊是否等於右邊,結果是相等,因此變數 c 會儲存 True 表示比較的結果。\n\n第七行是在比較變數 a 儲存的結果與變數 c 儲存的結果是否相等,\n根據第一行與第三行的執行,變數 a 和 b 裡儲存的結果是不一樣,\n因此變數 g 會儲存 False。\n\"\"\"\n\na = 10 \u003e 10 # False\nb = 10 \u003c 10 # False\nc = 10 == 10 # True\nd = a and b and c # False\ne = a or b or c # True\nf = a == b # True\ng = a == c # False\n\nprint('a 變數裡存:', a)\nprint('c 變數裡存:', c)\nprint('a == c 比較變數 a 和 c 是否相等,並將結果存至 g')\nprint('g 變數裡存:', g)","created_at":"2022-02-23T17:25:05.433+08:00","updated_at":"2022-02-23T17:39:18.004+08:00","name":"#2 資料型態,詳解","language":"python","screenshot":{"url":"/uploads/project/screenshot/348270/b230fa3bcc0fafe3f75ee57f07ce202f.jpg"},"parent_id":4,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":343,"hashid":"rdvs62rkz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":7528991,"file_name":"koding.png","project_id":348270,"asset_id":302346,"created_at":"2022-02-23T17:25:05.439+08:00","updated_at":"2022-02-23T17:25:05.439+08:00"},{"id":7528992,"file_name":"calm.mp3","project_id":348270,"asset_id":302345,"created_at":"2022-02-23T17:25:05.441+08:00","updated_at":"2022-02-23T17:25:05.441+08:00"},{"id":7528993,"file_name":"bg.jpg","project_id":348270,"asset_id":302344,"created_at":"2022-02-23T17:25:05.442+08:00","updated_at":"2022-02-23T17:25:05.442+08:00"},{"id":7528994,"file_name":"cloud.png","project_id":348270,"asset_id":302343,"created_at":"2022-02-23T17:25:05.443+08:00","updated_at":"2022-02-23T17:25:05.443+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