type這個function,可以取得變數的資料型態

type_value='this is a string'

get_type=type(type_value)

print get_type

輸出結果:

<type 'str'>

arrow
arrow
    全站熱搜

    yuanann 發表在 痞客邦 留言(0) 人氣()