ist包含数字,不能直接转化成字符串。 解决办法: print(" ".join('%s' %i for i in list1)) 即遍历list的元素,把他转化成字符串。这样就能成功输出1 2 3 1了。