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