📅  最后修改于: 2022-03-11 14:45:35.325000             🧑  作者: Mango
my_string = "blah, lots , of , spaces, here "
result = [x.strip() for x in my_string.split(',')]
# result is ["blah", "lots", "of", "spaces", "here"]