import pandas as pd
def putDataIntoCsv(dataContents, fileName):
save = pd.DataFrame(dataContents, columns=titles)
if (os.path.exists(fileName)):
file = open(fileName, "a", encoding='utf-8')
save.to_csv(file, header=False, line_terminator=" ", index=False)
file.close()
print("添加完成")
else:
file = open(fileName, "w", encoding='utf-8')
save.to_csv(file, line_terminator=" ", index=False)
file.close()
print("新建完成")
# 释放
return []