上一页 1 ··· 4 5 6 7 8
摘要: 上面代码是长转短,短转长也是一样,起码,在有cookies的情况下,浏览器输入http://dwz.wailian.work/api.php?url=aHR0cDovL3QuY24vRTlFV3J1SA==&action=restore也是可以返回结果的 ps:这个可真是花了我一点时间呢。使用req 阅读全文
posted @ 2019-08-24 12:15 vocus 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 小Q有X首长度为A的不同的歌和Y首长度为B的不同的歌,现在小Q想用这些歌组成一个总长度正好为K的歌单,每首歌最多只能在歌单中出现一次,在不考虑歌单内歌曲的先后顺序的情况下,请问有多少种组成歌单的方法。输入描述:每个输入包含一个测试用例。每个测试用例的第一行包含一个整数,表示歌单的总长度K(1<=K< 阅读全文
posted @ 2019-08-21 06:03 vocus 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 简介 正如,pyplot模块被用来绘制二维图,matplotlib使用mplot3d模块绘制三维图形,在mplot3d模块中存在 mpl_toolkits.mplot3d.axes3dmpl_toolkits.mplot3d.axis3dmpl_toolkits.mplot3d.art3dmpl_t 阅读全文
posted @ 2019-08-18 10:23 vocus 阅读(374) 评论(0) 推荐(0) 编辑
摘要: >> 相关知识,关于np.meshgrid()函数实现的功能 >> [6. 7. 8. 9.] [1. 2. 3. 4. 5.] [[6. 7. 8. 9.] [6. 7. 8. 9.] [6. 7. 8. 9.] [6. 7. 8. 9.] [6. 7. 8. 9.]] [[1. 1. 1. 1. 阅读全文
posted @ 2019-08-18 05:08 vocus 阅读(5245) 评论(0) 推荐(1) 编辑
摘要: nunicodeessscape codec can't decode bytes in position2-3:truncated\UXXXXXXXX escape 描述:im=Image.open("C:\Users\Administrator\Desktop\mylove.jpg") 解决方法 阅读全文
posted @ 2019-08-17 22:40 vocus 阅读(5062) 评论(0) 推荐(0) 编辑
摘要: 为了加深理解,写了一些代码测试,在这里记录一下吧: 关于图片的模式问题,之前做过笔记,有“1”,“L”,"P","RGB","RGBA","CMYK',"YCBCr","Note","LAB"等,这几种图片模式有什么区别呢? #001 from PIL import Imageimg1=Image. 阅读全文
posted @ 2019-08-17 08:46 vocus 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 这个程序的有意思之处在于把rgb图的通道,分开存入一个三维数组的三个维度中,可以加深对图片通道的理解,比如把程序修改成 >> rgb三色去掉一种颜色就变成灰色,另外把颜色rgb颜色反转(r<-b,g<-g,b<-r)也产生让人意想不到的效果 阅读全文
posted @ 2019-08-17 04:08 vocus 阅读(1482) 评论(0) 推荐(0) 编辑
摘要: 原文: https://pillow-cn.readthedocs.io/zh_CN/latest/reference/Image.html 中文版参考文档不全,所以自己试着翻译了一下,以下~备注部分,测试程序为自己添加~ PIL安装 下载地址:https://pypi.org/simple/pil 阅读全文
posted @ 2019-08-16 14:47 vocus 阅读(2105) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8