我正在调用CSV文件中的列我希望将该列的所有字符串组合为一个字符串:
import glob
import os
folder_path = 'C:\\Users\\mystuff' # path
for name in glob.glob(folder_path + '\*.csv'):
input = open(name)
filename = os.path.basename(name)
print '\t', filename
out=()
for line in input:
arr_input = line.split(",")
feedback = arr_input[14]
out.append(feedback)
print out