id function 可以取得變數的記憶體位置

id_value='this is a string'
address=id(id_value)
print address

輸出結果=>每台電腦的輸出結果會不一樣

2146526896

arrow
arrow
    全站熱搜

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