大家好,这里是程序员晚枫,B站/Z乎/小红薯也叫这个名。
今天给大家分享一下,花费2周时间整理的Python自动化办公库。
本次内容涵盖了Excel、Word、PPT、PDF、微信、文件处理等所有能在办公场景实现自动化的库,希望能够对大家有所帮助。
提前说一下,以下所有仓库和代码,都是在网络上开源免费的!
上次已经给大家分享了5个:全部免费!整理了10个Python自动化办公库!(上)
这次给大家分享剩下的5个,点关注不迷路哟~
https://www.python-office.com/office/robot.html
# 首先,将PyOfficeRobot模块导入到我们的代码块中。
# pip install PyOfficeRobot
import PyOfficeRobot
PyOfficeRobot.chat.send_message(who='小红书:程序员晚枫', message='你好')
https://pypi.org/project/poimage/
# pip install poimage
import poimage
poimage.add_watermark(file=r'D:\抖快-程序员晚枫-头像.jpg', mark='程序员晚枫', output_path=r'./mark_img')
https://pypi.org/project/pofinance/
# pip install pofinance
from pofinance import MakeT
t = MakeT()
"""
加载手续费
Args:
w_rate: 手续费,默认万2.5
min_rate: 单笔最低手续费,默认5元
stamp_tax: 印花税,默认千1
"""
sale_price_num = [(900, 12), (300, 11),(800, 10)]
res=t.batch_t(sale_price_num)
print(res)
https://pypi.org/project/povideo/
# pip install povideo
import povideo
povideo.video2mp3(path=r'd://程序员晚枫的VLOG.mp4', mp3_name='result')
https://pypi.org/project/wftools/
# pip install wftools
import wftools
wftools.weather()
在使用中有问题,或者觉得本文有帮助,请在评论区告诉我吧~
|