type這個function,可以取得變數的資料型態 type_value='this is a string' get_type=type(type_value) print get_type 輸出結果: <type 'str'>