Py学习  »  Python

在列表python中拆分单个字符串

Starbucks • 5 年前 • 1573 次点击  

如何在列表中拆分单个字符串?

data = ('Esperanza Ice Cream', 'Gregory Johnson', 'Brandies bar and grill')

返回:

print(data)
('Esperanza', 'Ice', 'Cream', 'Gregory', 'Johnson', 'Brandies', 'bar', 'and', 'grill')
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/39352
 
1573 次点击  
文章 [ 3 ]  |  最新文章 5 年前