windows 计划任务 # 计算机管理 compmgmt.msc ---> 计划任务 ---> 创建计划任务 ---> 名称-触发器-执行python.exe 参数xxx.py 起始目录 完成 # […] 7. windwos linux 定时任务
# !/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = import smtplib, os from email.mime.text import […] 6.3 smtplib email 案例
def zmail_email(): # !/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = # https://www.jianshu.com/p/ […] 6.2 zmail yagmail 案例
def send_email(): # smtplib email import smtplib from email.mime.text import MIMEText from email.header impo […] 6.1 批量发送邮件-工资条
def send_email(): # smtplib email import smtplib from email.mime.text import MIMEText from email.header impo […] 6. 发送邮件
from pptx import Presentation from pptx.util import Pt,Cm from pptx.dml.color import RGBColor from pptx.enum […] 5.5 添加形状并设置样式
from pptx import Presentation from pptx.util import Pt,Cm from pptx.dml.color import RGBColor from pptx.enum […] 5.4 添加表格并设置样式
from pptx import Presentation from pptx.util import Pt,Cm from pptx.dml.color import RGBColor from pptx.enum […] 5.3 设置文字框样式与文字样式
def use_bar(path): from pptx import Presentation from pptx.chart.data import CategoryChartData from pptx.enu […] 5.2 ppt 绘制bar、line、pie图表
# ppt 增加流程图 def add_flow_chart(path): from pptx import Presentation from pptx.enum.shapes import MSO_AUTO_SH […] 5.1 ppt 流程图
# PPT 基本操作 """ slide(幻灯片): 一个ppt由一系列的slide构成 slide_master(幻灯片母版): 母版可定义主题样式基准 slide_layouts(模 […] 5. ppt 基础操作
# pip install pypdf2,pypdf3 # 读取pdf文档 def read_pdf(path): # pip install pypdf2 from PyPDF2 import PdfReader […] 4. pdf 基础操作
from win32com.client import gencache from win32com.client import constants def createPdf(wordPath, pdfPath): […] 3.4 word 转 pdf
from docx import Document from datetime import datetime import os date = datetime.now() infos = [ ['浙AD […] 3.3 通过模板生成文件
from docx import Document from docx.shared import Pt, RGBColor, Inches from docx.oxml.ns import qn from docx […] 3.2 案例-违章通知书
from docx import Document from docx.oxml import OxmlElement from docx.oxml.ns import qn from docx.shared imp […] 3.1 自定义字符间距-无效参考