随笔分类 - python
摘要:1.二分算法 2.分治算法 https://www.cnblogs.com/kumata/p/9140907.html 3.贪心算法 https://blog.csdn.net/qq_33848737/article/details/77466665
阅读全文
摘要:链接:https://www.nowcoder.com/questionTerminal/944e5ca0ea88471fbfa73061ebe95728?orderByHotValue=1&mutiTagIds=665&page=1&onlyReference=false来源:牛客网 Z国的货币系
阅读全文
摘要:Linux安装python3: sudo apt-get install python3.5 安装python库 sudo apt-get install python3-setuptools sudo easy_install3 pipsudo pip3 install pyserial(pyse
阅读全文
摘要:import requests from lxml import etree import time import csv import random from User_agent import User_Agent class Foo: cou=0 # 一个user_agent爬取了的页数 i=0 agents =User_Agent #正在爬取所用'us...
阅读全文
posted @ 2019-01-31 12:40
我是一个粉刷匠^~^
摘要:问题: 然后再另一个文件中引用该变量 报错:Cannot find reference 'User_Agent' in '__init__.py' less... (Ctrl+F1) 正确写法: 但是运行的时候又报错了。再继续改成: 可以正确运行。 但是代码这报错,应该是pycharm的bug
阅读全文
摘要:统计词语出现的频率,并且按从高到低的顺序报错在文件中
阅读全文
摘要:利用python过滤去没用的词语,过滤的词语存储在停用文件中。
阅读全文
摘要:利用python将标题切割成词语
阅读全文

浙公网安备 33010602011771号