摘要: 1 file= open(address) 打开文件 2 file,'content' 3 file.close() 4 raw_input("aaa") 输入 5 int(value) 转换为int 6 range(start,stop[,int]) 实际最后值为stop-1,每次都增加int 7 异常 8 try: 9 .... 10 except ErrorType, e: 11 ... 12 raise Exception("a","b")抛出异常 13 self 相当于this 14 类函数参数第一个参数需要 阅读全文
posted @ 2011-12-13 15:48 天空海阔 阅读(253) 评论(0) 推荐(0) 编辑