【Python】 整型数与字符串相互转换

Python中字符串转换为数值:

str_num = '100'
num = int(str_num)

整型数转换为字符串:

num = 100
str_num = str(num)