随笔分类 -  py_tool

tool tool tool
*pytool_snake
摘要:# 看了一段时间了Python,看了一下Qt,花了2个多小时根据terix写了这个漏洞挺多的snake<画图,时间,event># 写的过程中发现 对界面大小方面不懂,乱筹才分成这21x21的格子...# 测试时发现对于那种处在边缘的格子 方法应该不对,先不管啦!!!# 希望每一天都有收获!!!import sysfrom PyQt4 import QtGui,QtCoreimport random,copyoardMap = [[ [0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 阅读全文
posted @ 2011-08-10 11:03 eth0 阅读(274) 评论(0) 推荐(0)
*pytool_Edit&Clock
摘要:# -*- coding:utf-8 -*-import sipsip.setapi('QVariant', 2)from PyQt4 import QtGui,QtCoreimport sys,winsoundclass DigitalClock(QtGui.QLCDNumber): def __init__(self, parent=None): #super(DigitalClock, self).__init__(parent) QtGui.QLCDNumber.__init__(self,parent) self.setSegmentStyle(QtGui.QLCDN 阅读全文
posted @ 2011-08-05 09:45 eth0 阅读(269) 评论(0) 推荐(0)
*pytool_MP3文件重命名
摘要:#-*- coding:utf-8 -*-import os,sys,glob,shutilpath = "D:\\Music"path_ = "F:\\Music 2012"temp = 0delete = []##os.mkdir(path)def visit(arg,dirlist,filelist): for filename in filelist: tem = os.path.join(dirlist,filename) delete.append(tem) if os.path.isfile(tem) and os.path.splitex 阅读全文
posted @ 2011-08-02 16:47 eth0 阅读(192) 评论(0) 推荐(0)