Python Func Args
# 位置参数
调用函数时根据函数定义的参数位置来传递参数。
123456def print_hello(name, sex): sex_dict = {1: '先生', 2: '女士'} print('hello %s %s, welcome to python world!' %(name, sex_dict.get(sex, '先生')))#...
more...









