python (六、常用第三方模組及綜合實戰)

來源:互聯網
上載者:User

標籤:繪圖   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 (六、常用第三方模組及綜合實戰)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.