随笔分类 -  python

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