python lstrip

2016-08-29 13:34:53 +08:00
 relic
2498 次点击
所在节点    Python
15 条回复
raptium
2016-08-29 13:41:13 +08:00
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
Verydiao
2016-08-29 13:43:13 +08:00
楼主头像好带劲,澄海 3C 传送权杖思密达!
kxxoling
2016-08-29 13:52:58 +08:00
@Verydiao DotA 圣者遗物吧?
liuxu
2016-08-29 13:55:28 +08:00
3800
fwings260
2016-08-29 14:30:49 +08:00
看见 3800 头像我就进来了!


15 分钟, SPE :老子 3800 到手,马上就辉耀!团战怎么输!
YORYOR
2016-08-29 15:06:20 +08:00
人在塔在
laoyur
2016-08-29 15:08:00 +08:00
看不到楼主帖子内容
ila
2016-08-29 15:21:38 +08:00
@Verydiao 感觉很熟悉,原来我一直在用。。。
lixia625
2016-08-29 15:22:11 +08:00
圣剑带一秒
diydry
2016-08-29 15:43:48 +08:00
是要出圣剑了吗 /??
ooTwToo
2016-08-29 16:03:05 +08:00
头像点进来的+1
yangff
2016-08-29 16:09:47 +08:00
@laoyur +1
yuedingwangji
2016-08-29 22:17:07 +08:00
看到头像就进来 ..
yuedingwangji
2016-08-29 22:17:38 +08:00
看到头像就进来 ..
@Verydiao 现在居然还有人玩 3C 呀,道友你好

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/302429

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX