python
Jarvis_V
这个作者很懒,什么都没留下…
展开
-
python-pptx的基本使用
python-pptx的使用首先需要了解几个基本概念:1.引入python-pptxfrompptximportpresentation# 实例化Presentationprs= Presentation()2.ppt模板的选择a、使用ppt自带的模板prs= Presentation()prs.slide_layouts[index]ppt自带了常用的1-48种...原创 2018-12-03 14:05:08 · 12672 阅读 · 1 评论 -
常用的正则表达式
一、校验数字的表达式1 数字:^[0-9]*$2 n位的数字:^\d{n}$3 至少n位的数字:^\d{n,}$4 m-n位的数字:^\d{m,n}$5 零和非零开头的数字:^(0|[1-9][0-9]*)$6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$7 带1-2位小数的正数或负数:^(\-)?\d+(\.\d{1,2...原创 2019-04-17 13:54:21 · 187 阅读 · 0 评论 -
【干货】十分钟理解Python定时任务框架APScheduler
安装 APScheduler$ pip install apscheduler快速开始from apscheduler.schedulers.blocking import BlockingSchedulerscheduler = BlockingScheduler()@scheduler.scheduled_job('cron', hour='8-23')def re...原创 2019-04-17 14:07:50 · 726 阅读 · 0 评论