📌  相关文章
📜  列表拆分为字符串 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:20.038000             🧑  作者: Mango

代码示例1
# instead of regular split
>> s = "a,b,c,d"
>> s.split(",")
>> ['a', 'b', 'c', 'd']

# ..split only on last occurrence of ',' in string:
>>> s.mysplit(s, -1)
>>> ['a,b,c', 'd']