Return a list of the words in the string, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done (thus, the list will have at most maxsplit+1 elements). If maxsplit is not specified or -1, then there is no limit on the number of splits (all possible splits are made).
如果要使用正则表达式:
如果需要列表而不是元组,请使用
list
函数。你知道吗使用^{} :
从文档中:
注意:我使用^{} 在分割后删除空白。你知道吗
相关问题 更多 >
编程相关推荐