```````````````
字符串左边有逗号,用lstrip解决。
a = ',,,,somestring' b = ',,,,,,,,anotherstring' a = a.lstrip(',') b = b.lstrip(',') print(a) print(b)