資料型別(type)

常用的資料型態 :

數值型態(Numeric type) : int、long、float、complex、bool

字串型態(String type ) : String

容器型態(Container type) : tuple、list、dict、set

說明 :

int : 整數,例如: 1、2、3、4、5...

bool : 布林,分為 True、False 通常用於條件判斷

float : 浮點數,係指有小數點的數字:1.222、1.0e7 等同於 10 的 7 次方

string : 字串,一串文字字元