Python 經常使用庫
- 基本的數據處理
0.list 鏈式表達sql
-
- dict
- tuple
- set 求和差並補集
str in,not in , startswith , endswith, find , findall
regex=re.compile(pattern) , regex.findall(s)
- datetime, time, dateutil
- datetime.date.today().strftime('%Y%m%d')
- math sqrt, exp,
- 系統命令
- os
- listdir ,curdir
- walk
- 數據庫處理
- MySQLdb
- MySQLdb.connect(host=, user=, passwd=, db=,port=,charset=)
- cur.execute() , cur.executemany()
- conn.commit()
- sqlalchemy
- create_engine
- 文件讀寫
- xlrd , xlwt , 支持xls
- openpyxl 支持 xlsx
- json
- readlines
- 調接口
- urllib, urllib2,
- header
- urllib.urlencode( )
- request
- get / post
- 郵件、提醒等
- email
- smtplib
- tkMessageBox 彈窗提醒
- 爬蟲 scrapy
- pandas
- 可視化
- matplotlib
- pyecharts
- Web
- tornado
- flask
- 科學計算
- numpy
- scipy
- sciki-learn
歡迎關注本站公眾號,獲取更多信息