How to split string in Python?
发布时间 2016年06月30日 分类: Python
Split string with identical separator
path = '45.63.130.248:15+221.160.226.9:329+101.240.154.40:1197'
nodes = path.split('+')
print nodes
['45.63.130.248:15', '221.160.226.9:329', '101.240.154.40:1197']
path = '45.63.130.248:15*+221.160.226 …
阅读全文