k = 3
cj,Sum = 0,0,0
for i in range(len(s)):
ch = s[i]
if '0' <= ch <= '9':
c = c * 10 + int(ch)
j += 1
else:
if j == k:
Sum += c
j,c = 0,0
字符串 s 为"wz500ai2024ok102"时,执行该程序段后,Sum 的值为( )
微信扫码预览、分享更方便