阅读下面代码,正确的输出是( )
Is=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] for i in range(100): if i*i in ls: ls.append(i) if Is.count(i)==2: ls.remove(i) print(ls)
[1,4,9]
[4,5,6,7,8,9,10,11,12,13,14,15,1,2,3]
[5,6,7,8,9,10,11,12,13,14,15,1,2,3,4]
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3]