python全棧開發筆記---------變數小結
阿新 • • 發佈:2018-11-09
變數是什麼?
變:變化,重在變字,量:計量,衡量,表示一種狀態。
變數字面理解就是一個可能改變的量,也就是這個值是不固定的。
變數名:
a.數字
b.字母
c.下劃線
變數的定義
level = 1
level : 變數名, = :賦值符號,1 :值
PS:
1.數字不能開頭
2.不能用關鍵字:(檢視所有的關鍵字:help("keywords"))
Here is a list of the Python keywords. Enter any keyword to get more help. and elif import returnas else in try assert except is while break finally lambda with class for not yield continue from ordef global pass del if raise