摘要: 一、位置参数 调用函数时根据函数定义的参数位置来传递参数。 #!/usr/bin/env python # coding=utf-8 def print_hello(name, sex): sex_dict = {1: u'先生', 2: u'女士'} print 'hello %s %s, wel 阅读全文
posted @ 2019-05-16 20:28 宇之尘 阅读(148) 评论(0) 推荐(0) 编辑