随笔分类 -  Python

摘要:pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio 0.8.0 -f https://download.pytorch.org/whl/torch_stable.html 阅读全文
posted @ 2022-12-01 15:13 体育.委员 阅读(35) 评论(0) 推荐(0)
摘要:https://www.lfd.uci.edu/~gohlke/pythonlibs/ 阅读全文
posted @ 2020-07-22 10:04 体育.委员 阅读(406) 评论(0) 推荐(0)
摘要:1、HTTP概览 Request URl:表示请求的URLRequest Method:表示请求的方法,此处为GET。除此之外,HTTP的请求方法还有OPTION、HEAD、POST、DELETE、PUT等,而最常用的就是GET和POST方法: POST:向指定资源提交数据,请求服务器进行处理(例如 阅读全文
posted @ 2019-01-15 15:32 体育.委员 阅读(140) 评论(0) 推荐(0)
摘要:D:\Python27\Scripts\pip.exe install beautifulsoup4 阅读全文
posted @ 2017-07-01 15:01 体育.委员 阅读(638) 评论(2) 推荐(0)
摘要:就没有问题,所以我猜测应该是编码的问题,在网上查了下答案,在第一行加上这样一句话: # encoding: utf-8 将编码格式改变为utf-8问题就解决了! 阅读全文
posted @ 2017-07-01 14:42 体育.委员 阅读(572) 评论(0) 推荐(0)
摘要:如果你刚开始没有建立快捷方式自己建立一个快捷方式,方法如下终端输入:sudo gedit /usr/share/applications/Pycharm.desktop粘贴模板: [Desktop Entry]Type=ApplicationName=PycharmGenericName=Pycha 阅读全文
posted @ 2017-01-17 16:01 体育.委员 阅读(277) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Wed Jan 11 17:21:54 2017 @author: PE-Monitor """ from urllib2 import urlopen from bs4 import BeautifulSoup html =urlopen("https://hao.360.cn/") bsobj =Beautif... 阅读全文
posted @ 2017-01-11 17:57 体育.委员 阅读(241) 评论(0) 推荐(0)
摘要:一开始使用了beautifulSoup的get_text()进行字符串的提取,后来一直提取失败,并提示错误为TypeError: 'NoneType' object is not callable 返回了none类型,可能是对Span标签内容的提取产生错误,于是采用name.string进行字符的提 阅读全文
posted @ 2017-01-11 17:34 体育.委员 阅读(4478) 评论(0) 推荐(0)