- 博客(2)
- 收藏
- 关注
原创 Python-因解析器选择爬取大学排名时出现小问题
解析器为python标准库时爬取url=http://www.zuihaodaxue.cn/zuihaodaxuepaiming2017.html出现问题但是爬取http://www.zuihaodaxue.cn/zuihaodaxuepaiming2016.html或其他年份时不会出现问题import requestsfrom bs4 import BeautifulSoupallUni...
2020-01-21 23:15:23
240
原创 Python-使用PIL和Image处理完图片存储时出现的问题
使用如下代码from PIL import Imageimport numpy as npim0 = np.array(Image.open("E:/1/1.jpg").convert("L"))#灰度方式打开图片,并且转换为数组im1 = 255 - im0#反变换pil_im = Image.fromarray(np.uint(im1))pil_im.save("E:/1/im1...
2020-01-19 23:21:08
2546
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人