# 原文: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')

相关文章:

  • 2021-05-30
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-11-08
猜你喜欢
  • 2021-08-07
  • 2021-11-17
  • 2021-11-07
  • 2021-11-09
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案