为什么我不能在Python 2中使用命名参数来获取标准库中的函数

时间:2016-04-27 14:22:06

标签: python python-2.7

为什么我不能在Python的标准库中使用str.split函数时在Python 2中使用命名参数,而我可以将它们用于我自己的函数:

def foo(bar=''):
  pass

foo(bar='str')

0 个答案:

没有答案