2020
10-08
10-08
如何基于python把文字图片写入word文档
安装代码pipinstallpython-docx1.批量化往word文件中添加大批量重复的数据fromdocximportDocumentfromdocx.enum.textimportWD_ALIGN_PARAGRAPHfromdocx.sharedimportPt#磅数fromdocx.oxml.nsimportqn#中文格式#以上是docx库中需要用到的部分importtimeprice=input('请输入今日价格:')company_list=['客户1','客户2','客户3','客户4','客户5','客户6']today1=time.strftime("%Y-%m-%d",time.localtime())to...
继续阅读 >