zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    jquery实现全选、不选、反选的两种方法
    EasyGui
    PyInstaller打包成exe可执行文件
    paramiko模块
    仿照admin写一个startk组件
    django-model之Q查询补充
    django-Model _meta API
    django-admin的源码流程
    权限管理具体代码实现
    021.15 IO流 其他流
  • 原文地址:https://www.cnblogs.com/openix/p/2924268.html
Copyright © 2011-2022 走看看