Fork me on GitHub
摘要: python中的参数 位置参数 必须按位置顺序传入限定个参数 默认参数 如 中`n`的默认参数是2 是必选参数在前,默认参数在后,否则Python的解释器会报错 当函数有多个参数时,把变化大的参数放前面,变化小的参数放后面。变化小的参数就可以作为默认参数。 最大的好处是能... 阅读全文
posted @ 2015-12-17 11:20 weaming 阅读(919) 评论(0) 推荐(0) 编辑
摘要: What is the difference between arguments and parameters? Parameters are defined by the names that appear in a function definition, whereas arguments... 阅读全文
posted @ 2015-12-17 11:17 weaming 阅读(260) 评论(0) 推荐(1) 编辑
 |  Github |  知乎 |  微博  |