随笔分类 - python
摘要:字符串解析 如果你使用的不是isoformat string那么解析字符串就会失败,需要用strptime转换一下 strptime-format-codes import datetime datetime.datetime.strptime('2021/2/5 9:34:37', '%Y/%m/
阅读全文
摘要:创建一个简单的PPTX文件 from pptx import Presentation class Main(): def __init__(self): prs = Presentation() title_slide_layout = prs.slide_layouts[0] slide = p
阅读全文
摘要:import pandas as pd class Main(): def __init__(self): # 读取excel self.df = pd.read_excel("C:\\Users\\ajanuw\\Desktop\\pexcel\\test.xlsx") # 打印 print(se
阅读全文
摘要:http://timgolden.me.uk/pywin32-docs/contents.html https://docs.python.org/3/library/ctypes.html#ctypes.WinDLL 安装 pywin32 pip install pywin32 -i https:
阅读全文