2019年9月24日

爬取豆瓣电影

摘要: 代码 # _*_ coding::utf_8 _*_ import re import urllib.parse import urllib.request url='https://movie.douban.com/j/search_subjects?type=movie&tag=%E7%A7%91%E5%B9%BB&sort=rank&' # page=int(input("请输入要查询的... 阅读全文

posted @ 2019-09-24 22:13 ybl20000418 阅读(94) 评论(0) 推荐(0) 编辑

post get 请求 headers注释哪些

摘要: post和get #post请求fomdata=urllib.parse.urlencode(fomdata).encode() request=urllib.request.Request(url=url,headers=headers) response=urllib.request.urlopen(request,fomdata) print(response.read().decode() 阅读全文

posted @ 2019-09-24 21:36 ybl20000418 阅读(639) 评论(0) 推荐(0) 编辑

matlab 子图像subplot

摘要: h =subplot(m,n,p) m 代表行 n 代表列 p 代表的这个图形画在第几行、第几列。 lena图的源代码: 综合: I=imread('lena.jpg'); figure,imshow(I); I1=rgb2gray(I); figure,imshow(I1); Noise=imno 阅读全文

posted @ 2019-09-24 16:34 ybl20000418 阅读(431) 评论(0) 推荐(0) 编辑

导航