子串的索引 str.index(sub) sub必须存在

 ii.lstrip(' ')[0:2]=='//'
 ii.lstrip(' ').index('//')==0
posted @ 2018-09-02 09:51  papering  阅读(334)  评论(0编辑  收藏  举报