import mathdef is_sqr(x): b=int(math.sqrt(x)) return x==b*bprint filter(is_sqr, range(1, 101)) 查看完整描述