import codecs
import pandas as pd
xd = pd.ExcelFile('XXX.xls')
pd.set_option('display.max_colwidth',1000)#设置列的宽度,以防止出现省略号
df = xd.parse()
with codecs.open('XX.html','w') as html_file:
    html_file.write(df.to_html(header = True,index = False))

 

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-11-01
  • 2021-08-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-08-21
  • 2021-06-30
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案