帮忙看看问题出现在哪

P5705 【深基2.例7】数字反转

hetwen @ 2022-08-19 15:03:34

a=input()
len=len(a)
for i in range(1,len+1):
    print(a[-i],end='')

by ioker @ 2022-08-19 15:14:18

@hetwen 越界了


by ioker @ 2022-08-19 15:14:48

print(a[len-i],end='')

可能是???


|