我遇到了这个 - 在我看来 - 奇怪的行为:
"a b c".split(maxsplit=1)
TypeError: split() takes no keyword arguments
为什么 str.split() 不接受关键字参数,即使它是有意义的?我在 Python2 和 Python3 中都发现了这种行为。
我遇到了这个 - 在我看来 - 奇怪的行为:
"a b c".split(maxsplit=1)
TypeError: split() takes no keyword arguments
为什么 str.split() 不接受关键字参数,即使它是有意义的?我在 Python2 和 Python3 中都发现了这种行为。