使用全域變數a = 1 # 建立全域變數a def fun : a=5 print a #5 a = a+10 # 改變 ... 不同的資料類似賦值給變數。 x = 3 y = 4.124 z = 如同模組樣,class 也具有Python ...
確定! 回上一頁