- 博客(8)
- 收藏
- 关注
原创 爬虫入门笔记
爬虫入门之urllib爬取豆瓣250网页 import re import urllib #爬取网页 url = 'https://movie.douban.com/top250?start=' #加伪装头 response.add_header('User-Agent','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
2021-08-04 20:30:54
153
原创 2021-03-05
pytorch图像处理,图像维度为四维 一般图片为三维,通道数,宽和高。 而在pytorch中,需要增加一个维度进行图像方面的处理,即在第零维中添加一个batch_size: (batch_size,channels,width,height)
2021-03-05 00:33:36
128
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅