python将列表转换为字符串(含有引号,用逗号间隔) list1 = [1,2,3,4] str = ','.join('"{0}"'.format(x) for x in list1) print(str)