# 原文:https://blog.csdn.net/sscc_learning/article/details/76993816
# 原文:https://www.cnblogs.com/vamei/archive/2013/03/12/2954938.html
import pandas as pd
import os
df = pd.read_excel('test.xlsx')
# 對列重新賦值
df["訪問時間"] =['2020-05-15 %s' % i for i in df["訪問時間"]]
list_excel = []
list_excel.append(df)
writer = pd.ExcelWriter('test2.xlsx')
pd.concat(list_excel).to_excel(writer,'sheet1',index=False)
writer.save()
print('ok')