Mo.group () oddzielone przestrzeniami zamiast przecinka Python

my_string = "blah, lots  ,  of ,  spaces, here "
result = [x.strip() for x in my_string.split(',')]
# result is ["blah", "lots", "of", "spaces", "here"]
Confused Cormorant