Summary:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
8.3 | Fix crash bug of npp5 when srch in files The msg when push the button: IDD_FINDINFILES_FIND_BUTTON Srch function: findAllIn(),_filters, _directory | fail |
Python | Test swigwin-<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />1.3.36 to create a struct & function & classes | OK |
| Lrn python in http://www.ibm.com/developerworks/cn/linux/tips/l-python/index.html | OK |
|
|
|
| 学到一招:vc build时显示某些进度 | OK |
| What lrned in asm? GHT, debug MEM balance/malloc leak problem, autoTest/rpt Thread pool, memory pool, pack/unpack | OK |
| 学习Nsi安装脚本 E:\soft\npp.5.0.2.src\PowerEditor\installer | OK |
| Python 幕后的故事 | 没看完 |
| Python中文处理 | OK |
| Swig和opencv例子中的makefile是什么,我觉得没有必要啊 经分析,的确没有必要,因为我已经有install.py了! | OK |
| Means of Directors in python: file:///E:/swigwin-1.3.36/swigwin-1.3.36/Doc/Manual/Python.html#Python_nn4 | ?? |
| Lamba就是定义一个函数指针: processFunc = lambda s: " ".join(s.split()) type,str,dir,callable,getattr
用and-or代替?:?不完全,比较恶心 | OK |
| 1. Install.py mk //make a 1.conf file 2. Install.py //install, clean, and test the lib | OK |
Import from | from UserDict import UserDict 它与你所熟知的 import module 语法很相似,但是有一个重要的区别:UserDict 被直接导入到局部名字空间去了 from types import FunctionType 其中FunctionType是types的子空间 | OK |
|
| |
Getopt | 处理argv输入: def main(argv): grammar = "kant.xml" try: opts, args = getopt.getopt(argv, "hg:d", ["help", "grammar="]) except getopt.GetoptError: usage() sys.exit(2) for opt, arg in opts: if opt in ("-h", "--help"): usage() sys.exit() elif opt == '-d': global _debug _debug = 1 elif opt in ("-g", "--grammar"): grammar = arg source = "".join(args) k = KantGenerator(grammar, source) print k.output() | OK |
函数编程 | : 将满足f(x)!=false的数据放到输出中 >>> def f(x): return x % 2 != 0 and x % 3 != 0 ... >>> filter(f, range(2, 25)) [5, 7, 11, 13, 17, 19, 23] 将f(输入)放到输出中 >>> def cube(x): return x*x*x ... >>> map(cube, range(1, 11)) [1, 8, 27, 64, 125, 216, 343, 512, 729, 1000]
| ok |
文件目录遍历 | os.path.dirname,os.path.abspath,os.listdir 找到满足regex条件的list: test = re.compile("test\.py$", re.IGNORECASE) files = filter(test.search, files) 获得当前代码的目录os.getcwd 设置当前目录sys.path.append
| ok |
|
|
|