求解
查看原帖
求解
1002603
FossOld楼主2023/6/23 12:55
a = int(input())
b = input()
for i in range(a):
    s = input().split()
    if s[0] == "1":
        b += s[1]
        print(b)
    elif s[0] == "2":
        first, second = int(s[1]), int(s[2]) + int(s[1])
        b = b[first:second]
        print(b)
    elif s[0] == "3":
        first = int(s[1])
        b = b[0:first] + s[2] + b[first:]
        print(b)
    elif s[0] == "4":
        print(b.find(s[1]))

不理解为什么提示Wrong Answer.wrong answer On line 1 column 6, read (ASCII 13), expected L.

2023/6/23 12:55
加载中...