【发布时间】:2019-04-29 11:02:16
【问题描述】:
a = "a4b4t8a3a3w2q5a8o9i8"
for i in range(0, len(a)):
if a[i].isdigit() is False:
print("detected letter")
i +=5 #this does not increase the i by 5 each tiem I find a letter
这无助于索引“i”向前跳 5。为什么?
【问题讨论】:
-
我找到了这个帖子:stackoverflow.com/questions/14785495/… 认为这就是您要寻找的答案。
标签: python