1.字符串转换成int
a = '10'
int(a) //十进制string转化为int, 10
int(a, 16) //十六进制string转化为int,16
2.int转换成字符串
a = 10
str(a) //int转化为十进制string
hex(a) //int转化为十六进制string
1.字符串转换成int
a = '10'
int(a) //十进制string转化为int, 10
int(a, 16) //十六进制string转化为int,16
2.int转换成字符串
a = 10
str(a) //int转化为十进制string
hex(a) //int转化为十六进制string