標籤:繪圖 and 處理 驗證 nbsp 堆疊 work domain 第三方
# pillow圖片處理
from PIL import Image, ImageFilter
# requests處理web請求
import requests
代碼量比較多
# 利用requests實現豆瓣類比登陸
from bs4 import BeautifulSoup
# psutil
import psutil
psutil is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python. Supported platforms:
# 簡易redis封裝
import redis
(本地運行代碼出現錯誤)
# numpy
import numpy as np
# matplotlib繪圖
# 線型圖
x = np.arange(-np.pi, np.pi, 0.1)
ysin = np.sin(x)
ycos = np.cos(x)
plt.plot(x, ysin, ‘g‘)
plt.plot(x, ycos, ‘b‘)
# 柱狀圖
# 堆疊柱狀圖
# 並列柱狀圖
# 橫向柱狀圖
# 橫向並列柱狀圖
# 長條圖
# 核密度曲線
# 散佈圖
# 極座標 - 能力圖
# Scrapy常用命令
# 建立新項目:scrapy startproject tutorial
# 產生爬蟲:scrapy genspider mydomain mydomain.com
# 執行爬蟲:scrapy crawl <spider>
# 作業
# 利用pillow產生驗證碼
# 利用matplotlib實現餅圖
安裝Scrapy在後面的教程會介紹
python (六、常用第三方模組及綜合實戰)