Slicing string in list python using a separator python

前端 未结 0 1845
Happy的楠姐
Happy的楠姐 2020-12-07 03:56

is it possible to slice a string in a list using a separator? When I use sep = ":" and try to slice I get an error saying that slicing is only possible with number

相关标签:
回答
  • 消灭零回复
提交回复
热议问题