最近2018中文字幕在日韩欧美国产成人片_国产日韩精品一区二区在线_在线观看成年美女黄网色视频_国产精品一区三区五区_国产精彩刺激乱对白_看黄色黄大色黄片免费_人人超碰自拍cao_国产高清av在线_亚洲精品电影av_日韩美女尤物视频网站

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網營銷解決方案
python變量的作用與定義規(guī)則
 變量的作用:
     Variables are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and ourselves. It is helpful to think of variables as containers that hold information. Their sole purpose is to label and store data in memory. This data can then be used throughout your program.

     變量用于存儲計算機程序中引用和操作的信息。它們還提供了用描述性名稱標記數(shù)據的方法,因此讀者和我們自己可以更清楚地理解我們的程序。將變量看作容器來保存信息是很有幫助的。他們唯一的目的是在內存中標記和存儲數(shù)據。這些數(shù)據可以在整個程序中使用。

     變量定義規(guī)則:

 變量名只能是 字母、數(shù)字或下劃線的任意組合
 變量名的第一個字符不能是數(shù)字
 以下關鍵字不能聲明為變量名['and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif',    'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'print', 'raise', 'return', 'try', 'while', 'with', 'yield']
     模塊名,包名 :小寫字母, 單詞之間用_分割。
 類名:首字母大寫。
 全局變量: 大寫字母, 單詞之間用_分割。
 普通變量: 小寫字母, 單詞之間用_分割。
 函數(shù): 小寫字母, 單詞之間用_分割。
 實例變量: 以_開頭,其他和普通變量一樣 。
 私有實例變量(外部訪問會報錯): 以__開頭(2個下劃線),其他和普通變量一樣 。
 專有變量: __開頭,__結尾,一般為python的自有變量(不要以這種變量命名)。

網站題目:python變量的作用與定義規(guī)則
網站鏈接:http://fisionsoft.com.cn/article/jedoho.html