子串位置

s = 'ddda4534asaa'
x = s.index('a', 0)
x1 = s.index('a', -1)
正序
倒序



posted @ 2024-08-09 16:59  papering  阅读(1)  评论(0编辑  收藏  举报