close
code:
str = 'string-123-test'
str1 = str.split('-')
print('str1: ' ,str1)
output:
str1: ['string', '123', 'test']
文章標籤
全站熱搜
code:
str = 'string-123-test'
str1 = str.split('-')
print('str1: ' ,str1)
output:
str1: ['string', '123', 'test']
留言列表