05 2016 档案

摘要:函数: 定义函数: def function (param1, param2...): body return XXX 函数名用小写 函数参数: 普通参数 默认参数,即调用函数 send_1 时可以不传入 b 参数,b 参数值默认为 'gary' # 默认参数 def send_1(a, b='ga 阅读全文
posted @ 2016-05-27 23:07 garyyang 阅读(152) 评论(0) 推荐(0)
摘要:Data Type List Compound data type, used to group together other values, which can be written as a list of comma-separated values (items) between squar 阅读全文
posted @ 2016-05-18 16:04 garyyang 阅读(153) 评论(0) 推荐(0)
摘要:Basic Rules Always use the extension .py. Always use #!/usr/bin/env python as shabang line. Variable Naming rule: Names must start with a letter or an 阅读全文
posted @ 2016-05-13 15:57 garyyang 阅读(183) 评论(0) 推荐(0)