摘要: 参考文: https://blog.csdn.net/fei347795790/article/details/111164254 Python实现自动发送B站直播弹幕软件 https://blog.csdn.net/fzq13994952987/article/details/100861372 阅读全文
posted @ 2021-12-28 21:43 NPC_P 阅读(3325) 评论(0) 推荐(0)
摘要: 参考链接: https://www.cnblogs.com/xiao987334176/p/13535646.html https://blog.csdn.net/qq_21570029/article/details/83185168 https://blog.csdn.net/qq_417992 阅读全文
posted @ 2021-12-28 11:15 NPC_P 阅读(1282) 评论(0) 推荐(0)
摘要: 参考转载: https://www.dazhuanlan.com/langwirter/topics/1462147 https://www.jianshu.com/p/cdea3ba63cd7 from PIL import ImageFont from PIL import Image from 阅读全文
posted @ 2021-12-27 11:55 NPC_P 阅读(166) 评论(0) 推荐(0)
摘要: 参考资料: https://zhuanlan.zhihu.com/p/27047417 1.用OpenCV OpenCV的imread()只能加载本地的图片,并不能通过网址加载图片。但是,opencv的VideoCapture类可以从url加载视频。如果只用opencv的话,我们可以一个迂回的方式: 阅读全文
posted @ 2021-12-27 10:35 NPC_P 阅读(343) 评论(0) 推荐(0)
摘要: 参考资料: https://blog.csdn.net/dcrmg/article/details/102963336 from PIL import ImageFont from PIL import Image from PIL import ImageDraw # 随机生成图片颜色 color 阅读全文
posted @ 2021-12-27 10:31 NPC_P 阅读(168) 评论(0) 推荐(0)
摘要: 腾讯官方获取qq用户头像照片API http://q1.qlogo.cn/g?b=qq&nk=2714494640&s=100 参数说明: | 参数 | 描述 | | | | | b | 固定参数'qq' | | nk | 请求的QQ号 | | s | 图片尺寸见下表 | 头像尺寸: | s/spe 阅读全文
posted @ 2021-12-27 09:35 NPC_P 阅读(4311) 评论(0) 推荐(0)
摘要: import requests import json def qmusic(): # 搜索api url = 'https://c.y.qq.com/soso/fcgi-bin/client_search_cp?aggr=1&cr=1&flag_qc=0&p=1&n=1&w=' MusicName 阅读全文
posted @ 2021-12-26 17:13 NPC_P 阅读(694) 评论(0) 推荐(0)
摘要: from PIL import Image def Clipper(): img = Image.open('./001.PNG') width, height = img.size print(width,height) img.show() box = (500, 500, 2500, 1500 阅读全文
posted @ 2021-12-26 17:10 NPC_P 阅读(182) 评论(0) 推荐(0)
摘要: 参考资料: https://www.jianshu.com/p/ebe52d2d468f Markdown语法大全(超级版) https://jingyan.baidu.com/article/ed15cb1b98ddbc1be3698187.html Markdown常用命令(1) https:/ 阅读全文
posted @ 2021-12-26 15:48 NPC_P 阅读(53) 评论(0) 推荐(0)
摘要: import json import requests def Translate(): try: url = "http://fanyi.youdao.com/translate" msg = "需要翻译的内容" params = { 'doctype': 'json', 'type': 'AUT 阅读全文
posted @ 2021-12-26 14:55 NPC_P 阅读(807) 评论(0) 推荐(0)