运行以下代码时出现nzec错误:
A,B=map(int,input().split())
c=[]
x=['1','2','3','4','5','6','7','8','9']
for i in str(A-B):
c.append(i)
import random
d=random.choice(c)
x.remove(d)
c.insert(c.index(d),random.choice(x))
c.remove(d)
p=str()
for i in c:
p=p+str(i)
print(int(p))
有人可以向我解释错误吗?