python 列表中的数字转为字符串

1.

list1 = [1,2,3,4,5]

list1 = [ str(x) for x in list1 ]

2.

list1 = [1,2,3,4,5]

list1 = list(map(str,list1))

猜你喜欢

转载自www.cnblogs.com/chen-wg/p/10837530.html