
python
文章平均质量分 55
hellodrawing
这个作者很懒,什么都没留下…
展开
-
python 生成词云
#/usr/bin/env python# *-*coding:utf-8 *-*#模块介绍https://amueller.github.io/word_cloud/#python 3.5.2from scipy.misc import imreadfrom wordcloud import WordCloudimport matplotlib.pyplo转载 2017-03-20 15:55:35 · 1469 阅读 · 0 评论 -
python 基础教程 23章NNTP 2
#/usr/bin/env python#*-*coding:utf-8 *-*#python 基础 23章NNTP 23-1 简单的新闻收集道理程序#python2.7 运行from nntplib import NNTPfrom time import strftime, time, localtimeday = 24 * 60 * 60 # 一转载 2017-04-10 00:03:14 · 907 阅读 · 0 评论 -
python 基础教程 23章NNTP 1
#/usr/bin/python# *-*coding:utf-8 *-*#python NNTP# group组返回响应信息from nntplib import NNTPwith NNTP('news.gmane.org') as n:print(n.group('gmane.comp.python.committers'))serv转载 2017-04-10 00:01:17 · 1649 阅读 · 1 评论 -
python 基础教程 23章NNTP 3
#/usr/bin/env python#*-*coding:utf-8 *-*# python 基础教程23章NNTP 23-2 更灵活的新闻收集代理程序#python2.7 运行from nntplib import NNTPfrom time import strftime, time, localtimefrom email import messa转载 2017-04-10 00:04:41 · 1278 阅读 · 0 评论 -
ubuntu16.10安装MySQLdb
ubuntu16.10安装MySQLdb记录一下过程python版本 2.7.12+1下载安装包https://sourceforge.net/projects/mysql-python/下载的MySQL-python-1.2.4b4.tar.gz2解压缩tar zxvf MySQL-python-1.2.4b4.tar.gz3进入文件cd原创 2017-05-11 23:11:18 · 321 阅读 · 0 评论 -
python 12GUI
#!/usr/bin/python# *-*coding:utf-8 *-*#python12章 GUI图形用户界面, wxpythonimport wx##每个wxpython程序都是wx.App的一个实例。False参数表示不要将stdout和stderr重定向到窗口#创建应用程序对象,负责幕后的所有初始化,如果无法工作可能需要将它替换为wx.Pysimpl转载 2017-06-16 11:03:03 · 608 阅读 · 0 评论 -
The Tetris game wxPython
#!/usr/bin/python# *-*coding:utf-8 *-*"""俄罗斯方块wxPython tutorial :http://zetcode.com/wxpython/The Tetris game in wxPython :http://zetcode.com/wxpython/thetetrisgame/"""#tetris转载 2017-06-16 11:04:58 · 410 阅读 · 0 评论 -
python28章 项目9文件共享GUI版本
#!/usr/bin/python# *-*coding:utf-8 *-*"""28章项目9python2 对27章项目扩展增添一个GUI功能。简单的GUI客户端(simple_guiclient.py)部件的文档链接:http://xoomer.virgilio.it/infinity77/wxPython/widgets.html入门介绍https://w转载 2017-06-16 11:01:56 · 932 阅读 · 0 评论