變數與數字

零經驗也能學的機器學習程式設計——只要會打字,就能開始

程式需要記住東西。Python 記住東西的方式,是把值放進叫做變數的具名箱子裡。想像一整排貼著標籤的罐子:其中一個罐子上貼著 score 的標籤,裡面裝著數字 10。之後只要程式提到 score,Python 就會走到架子前,打開那個罐子,使用裡面此刻裝著的東西。

🔒 This is a Pro lesson — the interactive figure, worked examples, quiz and practice open with Pro access.

▶ 變數與數字
← 你的第一支程式文字:處理字串 →