2024-09-30 08:34:24 发布
网友
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。为什么
试试这个
a[i + 5]
而不是
i + 5
试试这个
而不是
相关问题 更多 >
编程相关推荐