自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 收藏
  • 关注

转载 UBUNTU 16.10 上装 Google Earth!

转自 https://www.v2ex.com/t/275273链接 :http://blog.pztop.com/2016/04/28/Install-Google-Earth-on-Ubuntu-16-04/google earth 网址 :https://www.google.com/intl/zh-CN/earth/下载后安装 sudo dpkg -i google-e

2017-07-23 16:53:08 1694

转载 python基础教程 29章 DIY街机游戏

#!/usr/bin/python# *-*coding:utf-8 *-*"""ubuntu 16.10 python3sudo pip install pygame安装 pygame-1.9.3文档http://www.pygame.org/docs/方法索引pygame v1.9.2 documentation https://

2017-06-26 23:40:56 1377

转载 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 376

转载 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 573

转载 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 880

翻译 python基础 27章 使用XML_RPC进行文件共享

# *-*coding:utf-8 *-*#python 3简单的Node实现 (simple_node.py)from xmlrpc.client import ServerProxyfrom os.path import join, isfilefrom xmlrpc.server import SimpleXMLRPCServerfrom urllib.parse

2017-06-02 00:55:23 443

转载 python基础 26章 项目7 自定义电子公告板

python 教程 26章 项目7自定义电子公告板 , cgi, postgres,mysql数据库

2017-05-22 16:47:50 923

原创 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 290

转载 python 使用CGI进行远程编辑2

#把index.html放在apache2/htdocs文件夹中,或者修改原来存在的It's works的 index.html文件然后浏览器 localhost 或者自己的localhost/index1.htmlindex.html-----------------一个带有能输入文件名的表单网页,包括一个触发edit.cgi的Open按钮index.html中文本框被命

2017-05-10 16:18:29 403

转载 python 使用CGI进行远程编辑1

CGI (Common Gateway Interface)通用网关接口 CGI是网络服务器可以将查询(一般来说是通过Web表单),传递到专门的程序(比如python程序)并且在网页上显示结果的标准机制。它是创建web应用的程序的一种简便方法,无需编写特殊用途的应用服务器。CGI是如何工作的1浏览器通过url连接到HHTP web服务器2web服务器接收到请求信息后

2017-05-10 16:07:00 693

转载 python turtle模块 画火树银花

python turtle模块

2017-04-29 16:25:38 20398

转载 python 基础教程 24章 虚拟茶话会 async5

#/usr/bin/python# *-* coding:utf-8 *-*"""多个聊天室的版本转载自 https://bblove.me/2015/03/26/python-im/"""from asyncore import dispatcherfrom asynchat import async_chatimport socket, asyn

2017-04-26 16:54:38 354

转载 python 基础教程 24章 虚拟茶话会 async4

#/usr/bin/python# *-*coding:utf-8 *-*"""python 基础教程24章 24-6 稍复杂些的聊天服务器"""from asyncore import dispatcherfrom asynchat import async_chatimport socket, asyncorePORT = 5005N

2017-04-24 00:18:53 430

转载 python 基础教程 24章 虚拟茶话会 async3

#/usr/bin/python# *-*coding:utf-8 *-*"""#python 基础教程 24章 24-5 简单的聊天的服务器#telnet 127.0.0.1 5005连接, 设置退出符号 telnet -e '=' 输入quit退出 #python3连接后报错 error: uncaptured python exception, c

2017-04-24 00:18:02 1590

转载 python 基础教程 24章 虚拟茶话会 async2

#/usr/bin/python# *-*coding:utf-8 *-*"""#python 基础教程24章 24-4 带有ChatSession类的服务器程序在python2中运行,python3需要用 encode('utf-8')转码set.terminator(term)设置要在信道上识别的终止对象collect_incoming_data

2017-04-24 00:16:16 309 1

转载 python 基础教程 24章 虚拟茶话会 async1

#/usr/bin/python# *-*coding:utf-8 *-*"""#python 基础教程 24章 24-3具有一些清理功能的基本服务器asyncore模块链接:https://docs.python.org/3/library/asyncore.htmlasynchat模块链接 https://docs.python.org/3/libr

2017-04-24 00:14:31 686

转载 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 1233

转载 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 856

转载 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 1604 1

转载 python 基础教程 xml

#/usr/bin/env python#*-*coding:utf-8 *-*#python 基础教程 22 使用 xmlfrom xml.sax.handler import ContentHandlerfrom xml.sax import parseimport osclass Dispatcher():"""capitalize() 返回一

2017-03-21 23:01:08 194

转载 python 基础教程 xml

#/usr/bin/env python# *-*coding:utf-8 *-*#pyhton 基础教程22 简单的页面创建程序脚本from xml.sax.handler import ContentHandlerfrom xml.sax  import parse"""xml.sax文档#https://docs.python.org/3/

2017-03-21 23:00:10 263

转载 python 基础教程 xml

#/usr/bin/env python#*-*coding:utf-8 *-*#python 基础教程 22 使用 xmlfrom xml.sax.handler import ContentHandlerfrom xml.sax import parseimport osclass Dispatcher():"""capitalize() 返回一

2017-03-21 22:59:35 242

原创 python 爬虫爬去虾米音乐 赵雷歌词

#/usr/bin/env python# *-*coding:utf-8 *-*#python 3 爬取赵雷歌词""""""from collections import Counterfrom urllib import requestfrom bs4 import BeautifulSoup as BSimport jiebaimport os

2017-03-20 16:01:16 1295

转载 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 1430

原创 utbutu16.10 安装pyaudio模块过程出现错误 fatal error: portaudio.h: 没有那个文件或目录 error: command 'x86_64-linux-gn

utbutu16.10 安装pyaudio模块过程出现错误使用的命令包括pip install pyaudioapt-get install pyaudio错误如下fatal error: portaudio.h: 没有那个文件或目录   #include "portaudio.h"                         ^  compilation te

2017-03-08 11:14:54 7954 3

原创 统计书中单词出现次数, 然后把数据生成pdf

#/usr/bin/env python# *-*coding:utf-8 *-*#运行环境python3用Counter统计书中单词的使用次数import sysfrom collections import Counter#参照python基础教程使用lines 和blocks生成文本块#def lines(filee

2017-03-07 13:25:28 901

转载 python基础教程最终的太阳黑子程序

#!/usr/bin/env python# -*- coding: utf-8 -*-#python基础教程最终的太阳黑子程序from urllib import urlopenfrom reportlab.graphics.shapes import *from reportlab.graphics.charts.lineplots import LinePlot

2017-02-24 16:27:49 1399 1

转载 #python基础教程太阳黑子图形程序的第一个原型

#!/usr/bin/env python# -*- coding: utf-8  -*-#python基础教程太阳黑子图形程序的第一个原型(sunspots_roto.py)from reportlab.lib import colorsfrom reportlab.graphics.shapes import *from reportlab.graphics

2017-02-24 16:25:45 1265

转载 python 基础教程第21章

#!/usr/bin/env python# -*- coding = utf-8  -*#一个简单的ReportLab程序from reportlab.graphics.shapes import Drawing, Stringfrom reportlab.graphics import renderPDFd = Drawing(100, 100)#Drawi

2017-02-22 13:39:17 459

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除