将标记从字符串解析为数组
sta的Python项目详细描述
sta
:将标记从字符串解析为数组
概述
sta从字符串中提取单词,并将这些单词存储在数组中。单词之间用空格隔开。
安装
pip install sta
用法
importstaprint(sta('this string is divided by spaces'))# => [ 'this', 'string', 'is', 'divided', 'by', 'spaces' ]
APIsta('string')
Return an array with each token
sta('string')
Return an array with each token
返回类型:list
相关
- str-to-arr:在javascript中将字符串转换为数组。
- s-to-o:在javascript中将字符串转换为对象。
团队
Carlos Abraham |