以下程序的输出结果是ls1=[1,2,3,4,5]ls2=[3,4,5,6,7,8]cha1=[]foriinls2:ifinotinls1:cha1.append(i)print(cha1)
下列程序的输出结果是()。#includestructabc{inta,b,c;};main(){structabcs[2]={{1,2,3},{4,5,6}};intt;t=s[0].a+s[1].b%s[0].c;printf("%d\n",t);}
若已知一个栈的入栈序列是1,2,3,…,n,其输出序列为p1,p2,p3,…,pn,若p1=n,则pi为()。