Python中字符串转换为数值:

str_num = '100'
num = int(str_num)


整型数转换为字符串:

num = 100
str_num = str(num)

相关文章: