>>> def foo(debug=Ture):
... if debug:
... print "yes"
... else:
... print "no"
>>>foo()
yes
>>>foo(False)
no
本文共 151 字,大约阅读时间需要 1 分钟。
>>> def foo(debug=Ture):
... if debug:
... print "yes"
... else:
... print "no"
>>>foo()
yes
>>>foo(False)
no
转载于:https://blog.51cto.com/colive/1332149