资源简介
很好的源码,python的,使用到了python的界面技术,数据库技术以及统计技术,很好很强大!

代码片段和文件信息
# coding: utf-8
import os sys shutil zipfile
import version
def win32_main():
f = open(“youmoney.nsi“ ‘r‘)
lines = f.readlines()
f.close()
f = open(“youmoney.nsi.new“ ‘w‘)
for line in lines:
if line.startswith(‘OutFile‘):
f.write(‘OutFile “YouMoney-%s.exe“\n‘ % (version.VERSION))
else:
f.write(line)
f.close()
if os.path.isfile(“youmoney.nsi.bak“):
os.remove(“youmoney.nsi.bak“)
shutil.move(“youmoney.nsi“ “youmoney.nsi.bak“)
shutil.move(“youmoney.nsi.new“ “youmoney.nsi“)
if os.path.isdir(‘dist‘):
shutil.rmtree(‘dist‘)
cmd = “setup.py py2exe“
print cmd
if os.system(cmd) != 0:
print ‘setup.py py2exe error!‘
return
cmd = “makensis.exe youmoney.nsi“
print cmd
os.system(cmd)
shutil.rmtree(‘build‘)
#shutil.rmtree(‘dist‘)
newname = ‘YouMoney-noinstall-%s‘ % (version.VERSION)
if os.path.isdir(newname):
shutil.rmtree(newname)
shutil.move(‘dist‘ newname)
#filename = newname + ‘.zip‘
#z = zipfile.ZipFile(filename ‘w‘ zipfile.ZIP_DEFLATED)
#for rootdirsfiles in os.walk(newname):
# for fname in files:
# fpath = os.path.join(root fname)
# z.write(fpath)
#z.close()
def mac_main():
if os.path.isdir(‘dist‘):
shutil.rmtree(‘dist‘)
if os.path.isdir(‘build‘):
shutil.rmtree(‘build‘)
cmd = “/usr/local/bin/python setup.py py2app“
if os.system(cmd) != 0:
print ‘setup.py py2app error!‘
return
os.chdir(‘dist‘)
os.rename(‘youmoney.app‘ ‘YouMoney.app‘)
os.chdir(‘../‘)
shutil.copy(‘README.rtf‘ ‘dist‘)
volname = ‘YouMoney-macosx10.5-%s‘ % (version.VERSION)
if os.path.isdir(volname):
shutil.rmtree(volname)
os.rename(‘dist‘ volname)
newname = ‘YouMoney-macosx10.5-%s.dmg‘ % (version.VERSION)
if os.path.isfile(newname):
os.remove(newname)
cmd = ‘hdiutil create -megabytes 50 -volname “%s“ -format UDIF -srcfolder “%s“ “%s“‘ % (volname volname newname)
if os.system(cmd) != 0:
print ‘create dmg error!‘
return
filename = ‘YouMoney-macosx10.5-%s.dmg.zip‘ % (version.VERSION)
if os.path.isfile(filename):
os.remove(filename)
z = zipfile.ZipFile(filename ‘w‘ zipfile.ZIP_DEFLATED)
z.write(newname)
z.close()
def src_main():
if os.path.isdir(‘youmoney‘):
shutil.rmtree(‘youmoney‘)
cmd = ‘hg clone https://youmoney.googlecode.com/hg/ youmoney‘
os.system(cmd)
os.rename(‘youmoney‘ ‘YouMoney-src-%s‘ % (version.VERSION))
def debian_main():
cmd = “rm -rf ../youmoney_*“
os.system(cmd)
cmd = ‘rm -rf debian/youmoney‘
os.system(cmd)
f = open(‘debian/files‘ ‘w‘)
s = ‘youmoney_%s-1_i386.deb Office extra‘ % (version.VERSION
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-06-07 23:09 YouMoney-src-0.9.5\
目录 0 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\
文件 57 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\00changelog.i
文件 8 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\branch
文件 94 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\branchheads.cache
文件 2205 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\dirstate
文件 56 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\hgrc
文件 23 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\requires
目录 0 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\
文件 34640 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\00changelog.i
文件 47246 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\00manifest.i
目录 0 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\
文件 762 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\.youmoney.py.swp.i
目录 0 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\data\
文件 466 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\data\category.csv.i
目录 0 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\
文件 577 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\changelog.i
文件 67 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\compat.i
文件 586 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\control.i
文件 1301 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\copyright.i
文件 82 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\dirs.i
文件 98 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\docs.i
文件 415 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\files.i
文件 955 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\rules.i
文件 206 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\debian\_r_e_a_d_m_e._debian.i
目录 0 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\images\
文件 4746 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\images\big.ico.i
文件 9708 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\images\cashin.png.i
文件 6971 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\images\cashout.png.i
文件 4182 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\images\categories.png.i
文件 4801 2010-06-07 23:09 YouMoney-src-0.9.5\.hg\store\data\images\cycle.png.i
............此处省略154个文件信息
相关资源
- python+ selenium教程
- PycURL(Windows7/Win32)Python2.7安装包 P
- 英文原版-Scientific Computing with Python
- 7.图像风格迁移 基于深度学习 pyt
- 基于Python的学生管理系统
- A Byte of Python(简明Python教程)(第
- Python实例174946
- Python 人脸识别
- Python 人事管理系统
- 基于python-flask的个人博客系统
- 计算机视觉应用开发流程
- python 调用sftp断点续传文件
- python socket游戏
- 基于Python爬虫爬取天气预报信息
- python函数编程和讲解
- Python开发的个人博客
- 基于python的三层神经网络模型搭建
- python实现自动操作windows应用
- python人脸识别(opencv)
- python 绘图(方形、线条、圆形)
- python疫情卡UN管控
- python 连连看小游戏源码
- 基于PyQt5的视频播放器设计
- 一个简单的python爬虫
- csv文件行列转换python实现代码
- Python操作Mysql教程手册
- Python Machine Learning Case Studies
- python获取硬件信息
- 量化交易(附python常见函数的使用方
- python 名字用字排行
评论
共有 条评论