类型转换

int("123")   123

int("3f",16)  63

bytes([72,9,64])  b'H @'

list("abc")   ['a', 'b', 'c']

set(["one","two"])  {'one','two'}

[int(x) for x in ('1','29','-3')]   [1,29,-3]

原文地址:https://www.cnblogs.com/find1/p/10347042.html