Return a copy of the string with leading characters removed.
fangdingjun
2016-08-29 13:42:36 +08:00
不是 bug, 你可以用 s.replace('statlogs.', '', 1)
仔细看文档 lstrip(...) S.lstrip([chars]) -> string or unicode
Return a copy of the string S with leading whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is unicode, S will be converted to unicode before stripping