摘要: # Python-docx 模块读写 Word 文档基础:创建文档、段落格式、字体格式设置方法 ## python-docx 模块简介: 安装方法:pip install python-docx 官方文档地址: [python-docx 0.8.10](https://pypi.org/projec 阅读全文
posted @ 2022-03-17 17:31 与鹿逐秋 阅读(3768) 评论(0) 推荐(0) 编辑
摘要: 第一种:对requests.get(url)获取的整体内容进行手动设定编码格式 response = requests.get(url) response.encoding = ‘utf-8’ page_text = response.text 第二种:对出现乱码的变量进行手动设定编码 tree = 阅读全文
posted @ 2022-03-17 01:14 与鹿逐秋 阅读(593) 评论(0) 推荐(0) 编辑