阳阳得意7825

导航

2017年9月7日 #

Python函数中如何定义参数

摘要: 一.位置参数:根据函数定义时的参数位置传递参数#形参和实参的个数必须一致def fun1(): print("运行结果") print("this is fun1(),no parameters")fun1()fun1(1) def fun2(a,b): print("运行结果") print("t 阅读全文

posted @ 2017-09-07 15:08 阳阳得意7825 阅读(4671) 评论(0) 推荐(0) 编辑