import math def is_sqr(x): return math.sqrt(x)%1==0 # math.sqrt(x)%1==0 没明白什么意思? print filter(is_sqr, range(1, 101))
Yvonne_hyt
相关分类