python学习笔记
基础、进阶、项目学习笔记;web、爬虫、运维、大数据、人工智能、物联网相关运用
嚓哥coding
这个作者很懒,什么都没留下…
展开
-
pycharm 常用设置
右上角 file-setting-“keymap”,右侧搜索框输入“increase”,搜索出来之后双击,选择“Add Mouse Shortcut”然后在操作框按住“Ctrl”并将鼠标滚轮上滑,完成设置,一直点击OK关闭界面即可。缩小操作只需要将上述步骤搜索的“increase”换成“decrease”即可。设置操作时按住“Ctrl”并向下滑动滚轮即可。分别在setting-的editor-font和color scheme-console font。原创 2023-01-01 21:14:58 · 2272 阅读 · 1 评论 -
Requirement already satisfied 解决方法
python -m pip install --upgrade pip 出现 :Requirement already satisfied 解决方法加上路径即可python -m pip install --target=D:/tongbupan/spider_for_jobinfo/venv/Lib/site-packages --upgrade pip原创 2021-02-21 23:10:53 · 3847 阅读 · 2 评论 -
环境导出、项目环境requirements、跟新包、安装包,查看某个包是否安装
1、出现警告C:\Users\admin>pip freeze > requirements.txtWARNING: Could not generate requirement for distribution -ywin32 227 (f:\programdata\anaconda3\lib\site-packages): Parse error at "'-ywin32='": Expected W:(abcd...)删除F:\programdata\anaconda...原创 2020-08-18 23:45:33 · 1011 阅读 · 0 评论 -
提取bilibili网页视频目录,网页提取标签、属性,list到写入文本
1、网页提起标签、及属性写入list # -*- coding:utf-8 -*-import requestsfrom bs4 import BeautifulSouphtml_doc3="""<ul class="list-box"><li class="watched on"><a href="/video/BV1gp4y1q71w?p=1" class="" title="1.01 引言"><i class="van-icon-videode原创 2020-08-17 23:05:47 · 1313 阅读 · 0 评论 -
解决Eclipse找不到或无法加载主类问题
1、projiet---clean;原创 2020-08-09 15:43:31 · 1187 阅读 · 1 评论 -
python爬虫出现 json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
1、运行python爬虫出现如下图所示bug2、解决办法:跟更新下最新的网站请求头request headers,和检查下请求链接是否还是一样,requests url 应该是就没登陆 要跟新cookies登陆成功! 200basicinfo请求失败!Traceback (most recent call last): File "F:\eclipse-worksp...原创 2020-02-23 13:39:34 · 6793 阅读 · 0 评论 -
python webcrawlering
webcrawler'envirement setting and soft installing1、the installing of the requests libpip3 install requestspip3 install seleniumpip3 install multidictpip3 install aiohttppip3 install cchard...原创 2019-10-07 20:50:01 · 158 阅读 · 0 评论 -
python_show waring handle
from selenium import webdriverfrom selenium.webdriver.chrome.options import Optionschrome_options = Options()chrome_options.add_argument('--headless')chrome_options.add_argument('--disable-gpu')...原创 2019-10-05 19:25:12 · 238 阅读 · 0 评论 -
明明没有错 怎么会说未定义,python
def OpenPrice(priceSequence): Open=priceSequence[0] return (Open)def ClosePrice(pricesequence): #Close=priceSequence[-1] Close=priceSequence[-1] return(Close)def HighPrice(price...原创 2018-08-24 23:20:40 · 6993 阅读 · 0 评论 -
python 出现 type object 'xxxxx' has no attribute 'xxxx',什么原因
from datetime import datetimeclass Asset(object): share=0 buyTime=datetime.strpdatetime('2018-08-18','%Y-%m-%d') sellTime=datetime.strpdatetime('2018-08-19','%Y-%m-%d') def __init__(...原创 2018-08-19 23:31:26 · 23313 阅读 · 0 评论 -
Python出现bound method
class Asset(object): def __init__(self,id,price): self.__id=id self.__price=price def getID(self): return(self.__id) def setID(self,idValue): if type(idVal...原创 2018-08-19 23:02:58 · 35246 阅读 · 0 评论 -
pip uprading for python anconda
I tried several update operations and finally succeeded.With the following command, the network speed is busy, you have to wait for a long time.easy_install --upgrade pipMicrosoft Windows [Version...原创 2019-10-04 22:46:04 · 595 阅读 · 0 评论