hello head

摘要: 1、try xx: except xx[, yy]: else:xx 2、 阅读全文
posted @ 2017-06-08 19:46 gardonkoo 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1、input/ raw_input/print 2、file对象 fopen(filename, [mode, buffering]),返回一个file对象 mode有以下取值:r,rb,r+,rb+, w, wb, w+, wb+, a, ab, a+, ab+ 3、 file.read()、f 阅读全文
posted @ 2017-06-08 16:24 gardonkoo 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1、使用def定义 2、全局变量、局部变量 在局部作用域内使用全局变量,需要加上global才生效 3、匿名函数,lambda表达式,一个简单的表达式。 4、不定长参数函数 def myfunc([xx], *yy) 5、关键字参数与参数位置不相关 1、模块是一个python文件,类似于c++中的头 阅读全文
posted @ 2017-06-08 09:09 gardonkoo 阅读(128) 评论(0) 推荐(0) 编辑

hello foot