python
庄舟
男人两行泪,一行为苍生,一行为美人
展开
-
Python(四) pip3
sudo pip install --upgrade pip python3 -m pip install --upgrade pippip3 --default-timeout=1000 install pymysql py -3 -m pip install requests原创 2018-07-26 17:17:28 · 366 阅读 · 1 评论 -
Python(二) 爬虫网页
import requestsimport refrom lxml import htmlfrom bs4 import BeautifulSouppayload = { "os_username": "xxxxx", "os_password": "xxxxxxx", "login": "Log in", "os_destinatio原创 2018-07-27 16:15:35 · 268 阅读 · 0 评论 -
Python(一) 连接mongodb
新建配置文件 config.ini[db]DB_USER = test_dbDB_PASSWORD = XXX6778a新建配置文件 mongo_config.iniimport configparserdef getConfig(dbkey): Config = configparser.ConfigParser() Config.read("co...原创 2018-07-27 16:19:25 · 292 阅读 · 0 评论 -
python(三)-python调用百度API/requests
爬虫-python调用百度API/requests 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26...转载 2018-09-04 15:17:35 · 1350 阅读 · 0 评论 -
pip3 install numpy 报错 If you have updated the package versions, please update the hashes
网络不稳定,多试几次可以解决。 wuqiangJondeMacBook-Pro:~ wuqiang$ pip3 install numpyCollecting numpy Downloading https://files.pythonhosted.org/packages/0a/2b/726b7d4e4ba844d4805c52b8e05299a5f49bc16c69ca0fa...原创 2018-10-10 11:27:59 · 7134 阅读 · 4 评论