一.pymysql 基础 安装命令:pip3 install pymysql -i https://pypi.douban.com/simple 二.pymysql命令 1.链接数据库 2.创建游标 3.sql拼接命令 4.查 5.改(改,删,增) 6.execute会返回受影响的行数。一般不适用 ...
分类:
数据库 时间:
2017-08-24 16:42:27
阅读次数:
235
pandas 安装方法:pip3 install pandas pandas是一个强大的Python数据分析的工具包,它是基于NumPy构建的模块。 pandas的主要功能: 具备对其功能的数据结构DataFrame、Series 集成时间序列功能 提供丰富的数学运算和操作(实质是NumPy提供的) ...
分类:
其他好文 时间:
2017-08-23 10:24:54
阅读次数:
186
取得网页源代码,导入pyquery库 pip3 install pyquery 如果报错的话:python安装pyquery报错error: 'libxml/xmlversion.h' file not found xcode-select --install sudo C_INCLUDE_PATH ...
分类:
其他好文 时间:
2017-08-21 15:56:18
阅读次数:
164
pip3 install requests pip3 install BeautifulSoup4 还需要使用jupyter: pip3 install jupyter 打开jupyterbook: jupyter notebook ...
分类:
其他好文 时间:
2017-08-21 15:44:12
阅读次数:
150
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy numpy?1.13.1+mkl?cp36?cp36m?win_amd64.whl 注意:安装的是numpy+mkl的 pip3 install numpy?1.13.1+mkl?cp36?cp36m? ...
分类:
其他好文 时间:
2017-08-20 21:05:41
阅读次数:
252
pandas a.基本使用 #结构化的数据分析 pip3 install jupyter pip3 install pandas #import pandas as pd #import numpy as np #事例一: #s = pd.Series([1,3,5,np.NaN,8,4]) #s ...
分类:
其他好文 时间:
2017-08-20 21:05:32
阅读次数:
304
用到shodan模块 话不多说,马上开始 pip3 install shodan import shodan SHODAN_API_KEY=" 你的shodankey" api = shodan.Shodan(SHODAN_API_KEY) try: results=api.search("3389 ...
分类:
编程语言 时间:
2017-08-16 17:15:17
阅读次数:
119
mac使用pip3报错ImportError:cannotimportname‘HTTPSHandler‘解决方法downvoteItseemsyourpiprequiresHTTPSHandlerwhichispartofSSLlibrary.OSXOnOSXyoushouldlinkOpenSSLduringPythoninstallation(See:#14497).ForPython2:brewreinstallpython--with-brewed-openssl
pipinstal..
分类:
系统相关 时间:
2017-08-14 22:17:15
阅读次数:
975
这里是前章,我们做一下预备。之前太多事情没能写博客~。。 (此博客只适合python3x,python2x请自行更改代码) 首先你要有bs4模块 windows下安装:pip3 install bs4,如果你电脑有python2x和python3x的话,在python3x中安装bs4请已管理员的身份 ...
分类:
编程语言 时间:
2017-08-13 14:12:34
阅读次数:
181
第二周 模块 库 相当于java导包 标准库 不用安装 第三方 需要安装 Python处理excel 读xlrd模块 写 XlsxWriter 模块 windows安装库很简单 python2执行 pip install pyexcelerator(模块名) Python 执行 pip3 insta ...
分类:
编程语言 时间:
2017-08-12 10:27:57
阅读次数:
322