源代码
txt = ",,,,,ssaaww.....banana" x = txt.lstrip(",.asw") print(x)
运行结果