📜  strip in split python 代码示例

📅  最后修改于: 2022-03-11 14:45:35.325000             🧑  作者: Mango

代码示例1
my_string = "blah, lots  ,  of ,  spaces, here "
result = [x.strip() for x in my_string.split(',')]
# result is ["blah", "lots", "of", "spaces", "here"]