#将列表里的int类型转化成str类型
num_list = [0,1,2,3,4,5,6,7,8,9]
num_list_new = [str(i) for i in num_list]
print(num_list_new)
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
#将列表里的str类型转换成为int类型
a=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
b=[int(i)for i in a]
print(b)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]