- 博客(4)
- 收藏
- 关注
原创 AttributeError: module ‘os‘ has no attribute ‘add_dll_directory‘
注意代码运行顺序,把你其他的模块放到:sys.path = 的下面。也是突然遇到的这个问题,搜到链接主的方法,亲测好用。
2025-02-26 14:58:00
222
原创 pandas实现Excel中的sumif函数功能
通过条件筛选(filtering)和聚合(aggregation)操作来实现与Excel中sumif
2024-09-11 12:50:21
429
原创 python中使用add_paragraph后,出现手动换行符
当我用下面操作时,会出现添加的每一行后面都有手动换行符from docx import Document# 打开题目.txt文件f = open('题目.txt', encoding='utf-8')document = Document()# 读取文件内容for i in f: document.add_paragraph(text=i)# 关闭文件f.close()document.save('题目.docx')然后我就加了 i=i.strip()from .
2022-11-11 10:58:30
756
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人