@[cqh_123](/user/1251006) 加一个try-except
```python
try:
n,k=input().split()
print(n[-int(k)])
except:
print(3)
```
原因我也不知道
by hyh0174 @ 2024-03-26 21:34:59
@[hyh0174](/user/439949) 谢谢,我试试
by cqh_123 @ 2024-03-28 21:48:51
@[hyh0174](/user/439949) 请问具体加在那里?
by cqh_123 @ 2024-03-28 21:53:29