Python分割字符串 split 用法
super
2022-12-14 23:36

Python分割字符串
str = '1-2-3-4-5-6'
print(str.split('-'))
# ['1', '2', '3', '4', '5', '6']

0 条讨论