![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
g_fllower
这个作者很懒,什么都没留下…
展开
-
在已安装requests库的情况下pycharm仍然报错no module named 'requests'
一、检查自己已经安装了requests库两种查询命令方式都需要在cmd中定位到pycharm的安装库,即先cd再输查询命令:通过pip install requests与pip list都可以看出电脑已经安装了requests库二、解决方法选择后,原界面改变为:可以看到这时就包含了我们所有之前安装过的库(也就是pip list的全部库)至此问题解决【另附pycharm版本号:】...原创 2018-07-13 10:11:58 · 13316 阅读 · 18 评论 -
python爬虫/笔记(一)
一、准备1、爬取url:http://www.7724.com/new-hot.html 页面上的排名前13个游戏名称与图片,并把图片下载到电脑本地2、使用的python版本为3.6二、代码#-*-coding:utf-8-*-import requests,time,re,urllibfrom lxml import htmlfrom lxml import etree...原创 2018-08-23 17:20:16 · 738 阅读 · 1 评论 -
pymysql 连接操作 phpMyAdmin
一、pymysql1、pymysql是支持py3.X的mysql连接库2、安装pymysql:pip install pymysql3、连接数据库需要服务器host二、代码1、连接数据库def connetSql(databaseName): sqlConnect = pymysql.connect( # 连接数据库服务器 user="root"...原创 2018-08-21 19:02:48 · 2263 阅读 · 0 评论