**N = int(input())
finallist=[]
for n in range(N):
enter=input()
mylist=[]
mylist=enter.split()
command=mylist[0]
if command=="append":
finallist.append(int(mylist[1]))
if command=="insert":
finallist.insert(int(mylist[1]),int(mylist[2]))
if command=="print":
finallist.print()
if command=="remove":
finallist.remove(int(mylist[1]))
if command=="sort":
finallist.sort()
if command=="reverse":
finallist.reverse()
if command=="pop":
finallist.pop()**
我正在用python 3进行编码,想获取动态命令,但我不明白为什么会显示错误