int类型变量占用两个字节,若有定义:int[]x=newint[10]{0,2,4,4,5,6,7,8,9,10};则数组x在内存中所占字节数是:
以下程序的输出结果是ls1=[1,2,3,4,5]ls2=[3,4,5,6,7,8]cha1=[]foriinls2:ifinotinls1:cha1.append(i)print(cha1)
以下程序的输出结果是ls1=[1,2,3,4,5]ls2=[3,4,5,6,7,8]cha1=[]foriinls2:ifinotinls1:cha1.append(i)print(cha1)