- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 OptionParser
OptionParser from : http://blog.sina.com.cn/s/blog_5d8dae7c010103fn.html Python 有两个内建的模块用于处理命令行参数: 一个是 getopt,《Deep in python》一书中也有提到,只能简单处理 命令行参数; 另一个是 optparse,它功能强大,而且易于使用,可以方便地生成
2013-02-25 17:08:04 581
转载 Python ConfigParser
http://zhangjunhd.blog.51cto.com/113473/348863 http://docs.python.org/library/configparser.html http://www.linux-field.com/?p=437 1.读取配置文件 -read(filename) 直接读取ini文件内容 -sections() 得到所
2013-02-22 12:59:46 430
转载 python 格式化输出
使用print输出各型的 字符串 整数 浮点数 出度及精度控制 strHello = Hello Python print strHello #输出结果:Hello Python #直接出字符串 1.格式化输出整数 python print也支持参数格式化,与C言的printf似, strHello = "the length of (%s) is %d" %(Hello
2013-02-11 13:46:38 731
原创 shedskin
Shed Skin is an experimental compiler, that can translate pure, but implicitly statically typed Python (2.4-2.6) programs into optimized C++. It can generate stand-alone programs or extension modules
2013-02-10 13:14:53 1376
转载 头文件依赖pimpl法
头文件依赖,Pimpl法,加速编译 举个例子: // File: SoundSystem.h #include "StreamFilter.h" #include "Emitters." class SoundSystem { public: // ... private:
2013-02-02 17:08:22 501
saunders-jeffery.pdf
2020-06-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人