![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 80
chaochao670
这个作者很懒,什么都没留下…
展开
-
python微软azure文本转语音
#! /usr/bin/env python3# -*- coding: utf-8 -*-####Copyright (c) Microsoft Corporation#All rights reserved.#MIT License#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fil...翻译 2021-08-24 15:39:20 · 2587 阅读 · 0 评论 -
python 长图片切割并转换为pdf
#!/home/chao/anaconda3/envs/test_py2/bin/python#coding:utf-8import os from PIL import Imagedef splitimage(src, dstpath): img = Image.open(src) w, h = img.size height=w*297/210 #A4纸比例出的高度 ...原创 2018-02-22 19:48:03 · 1740 阅读 · 1 评论 -
python图片转换pdf
#!/home/chao/anaconda3/envs/test_py2/bin/python#coding:utf-8import osimport sysfrom reportlab.lib.pagesizes import A4, landscapefrom reportlab.pdfgen import canvasfrom PIL import Imagefrom reportlab.p...原创 2018-02-22 19:49:03 · 7008 阅读 · 0 评论