摘要: #!usr/bin/env python# -*- coding:utf-8 -*-__author__ = "Samson"def test(x,y=3):#默认参数,调用函数时,默认参数可传可不传 print(x,y)test(2)test(2,3)#位置参数,与形参顺序一一对应test(y=3 阅读全文
posted @ 2017-12-18 23:14 CanSun 阅读(211) 评论(0) 推荐(0) 编辑