str.lstrip([chars])
chars -- 可以提供要修剪的字元
#!/usr/bin/python3 str = " this is string example....wow!!!" print (str.lstrip()) str = "*****this is string example....wow!!!*****" print (str.lstrip('*'))
this is string example....wow!!! this is string example....wow!!!*****