
Python
_xiaoxiong
这个作者很懒,什么都没留下…
展开
-
Matplotlib 作图中文无法显示
安装库 pip install numpy pip install scipy pip install matplotlibimport numpy as npimport matplotlib.pyplot as pltx = np.linspace(0, 10, 100)y = np.sin(x) + 1z = np.cos(x**2) + 1plt.figure(figsize原创 2017-04-27 10:50:10 · 1240 阅读 · 0 评论 -
python3爬取html页面内容
#!/usr/bin/python#coding: UTF-8from urllib.request import urlopen from bs4 import BeautifulSoupdef getContent(url): response = urlopen(url) buff = response.read() html = buff.decode("ut原创 2017-10-13 14:03:42 · 5592 阅读 · 0 评论