分页: 8/20 第一页 上页 3 4 5 6 7 8 9 10 11 12 下页 最后页 [ 显示模式: 摘要 | 列表 ]

终于有GUI的py2exe了 不指定

root , 2008/05/22 21:38 , Python , 评论(0) , 阅读(23964) , Via 本站原创
        PyBuilder is a Build Tool for compiling python scripts to exe format, on windows. It has a userfriendly interface and uses py2exe to do the compiling. No more messing around with command prompt, or setup scripts. PyBuilder will do it for you.
点击在新窗口中浏览此图片
点击在新窗口中浏览此图片
Tags:
    在程序中使用配置文件来灵活的配置一些参数是一件很常见的事情,配置文件的解析并不复杂,在python里更是如此,在官方发布的库中就包含有做这件事情的库,那就是ConfigParser,这里简单的做一些介绍。
    ConfigParser解析的配置文件的格式比较象ini的配置文件格式,就是文件中由多个section构成,每个section下又有多个配置项,比如:
引用

[db]
db_host=127.0.0.1
db_port=3306
db_user=root
db_pass=password
[concurrent]
thread=10
processor=20

    假设上面的配置文件的名字为test.conf。里面包含两个section,一个是db, 另一个是concurrent, db里面还包含有4项,concurrent里面有两项。这里来做做解析:
分页: 8/20 第一页 上页 3 4 5 6 7 8 9 10 11 12 下页 最后页 [ 显示模式: 摘要 | 列表 ]