发布时间:2013-05-28 18:16:08
#-*-coding:utf-8-*-import pygameimport mp3playimport timepygame.init()#clip = mp3play.load('能不能.mp3')clip = mp3play.load('http://upupyoyoyo.net/COFFdD0xMzY5NzM1OTU1Jmk9MTIxLjE1LjEzMC4xNTMmdT1Tb25ncy92Mi9mYWludFFDLzVjL2E3LzZiN2QyZjEwNzEzZTM5ZGI5ZDZiOGE2ODc4YmRhNzVjLm1wMyZtPTdkOThlNmM2ZTVkNTA.........【阅读全文】
发布时间:2013-05-28 11:08:44
#-*-coding:utf-8-*-# encoding='GBK'#导入库和常量import pygameimport timefrom pygame.locals import *from sys import exitimport mp3playbackground_image_filename="background.jpg"dog_image_filename="aa.jpg"#初始化pygame.init()#设置窗口screen = pygame.display.set_mode((400,590), 0, 32).........【阅读全文】
发布时间:2013-05-28 10:59:53
#!/usr/bin/python#-*-encoding:UTF-8-*-import sysif len(sys.argv) < 2:print('Usage : python sys.argv[0] FileName')sys.exit(1)else:print ('\nunix2dos.py execution successfully!\n')File=sys.argv[1]fileobj = open(File,'rU')try:allfile = fileobj.read()finally:fileobj.close().........【阅读全文】
发布时间:2013-05-23 11:21:34
from distutils.core import setupimport py2exesetup(console=["birdman.py"])#需要安装py2exe,推荐使用python 2.7.3,py2exe 则使用对应的版本......【阅读全文】
发布时间:2013-05-23 11:17:20
#-*-coding:utf-8-*-import osimport sysimport urllib2import pygameimport reimport socketimport subprocess# 输入要测试的site值print "Hello"print pygame.versite=raw_input("Pls Input Your Site:")req = urllib2.Request('http://192.168.1.88/cc.txt')fd = urllib2.urlopen(req)#http://192.168.........【阅读全文】