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 · 2872 阅读 · 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 · 1908 阅读 · 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 · 7158 阅读 · 0 评论
分享