python

python学习   http://www.pythoner.cn/

 

关于feed:http://buxulianwang.lofter.com/post/12a32e_af2368   不许联网



Google group 订阅方法



组页:



    https://groups.google.com/forum/#!forum/python-cn



对应的 feed.新主题.top50:



    https://groups.google.com/forum/feed/python-cn/topics/atom.xml?num=50



对应的 feed.有新回复主题.top50:



    https://groups.google.com/forum/feed/python-cn/msgs/atom.xml?num=50

 

python -m SimpleHTTPServer

    把当前目录设为HTTP服务目录,实现了一个HTTP服务,可以通过http://ip:8000访问

 

sudo apt-get install python-dev

从   http://sourceforge.net/projects/numpy/files/NumPy/

下载NumPy

解压并进入目录,python setup.py install

http://sourceforge.net/projects/gnuplot-py

sudo apt-get install python-matplotlib  python-numpy  python-scipy  python-dns

从http://www.crummy.com/software/BeautifulSoup/   下载beautifulsoup4-4.1.3.tar.gz  并安装

 

 

matplot中显示中文:

文件:test.py

#-*- coding: utf-8 -*-

from matplotlib.font_manager import FontProperties import matplotlib.pyplot as plt font = FontProperties(fname=r"/usr/share/fonts/win/simsun.ttc", size=14) plt.figure(figsize=(6,6)) x = [1,2,3,4,5,6,7,8] y = [] for i in x: y.append(-(i*i)+i+3) plt.plot(x, y) plt.title(u'测试程序', fontproperties=font) plt.xlabel(u'x轴', fontproperties=font) plt.ylabel(u'y轴', fontproperties=font) plt.grid(True) plt.show()

运行python plt.show()

另外可参考:

http://www.shahuwang.com/2012/05/09/matplotlib%E4%B8%AD%E6%96%87%E6%98%BE%E7%A4%BA%E9%97%AE%E9%A2%98%E7%9A%84%E8%A7%A3%E5%86%B3.html

你可能感兴趣的:(python)