11.2.2 关键字参数
标准调用:
def foo(x):
print x
a=foo('abcefg')
print a
C:Python27python.exe C:/Users/TLCB/PycharmProjects/untitled/mycompany/eee/a2.py
123456
None
关键字调用
def foo(x='a',y='b'):
print x
print y
a=foo(23,43)
print a
C:Python27python.exe C:/Users/TLCB/PycharmProjects/untitled/mycompany/eee/a2.py
23
43
None