# -*- coding: GBK -*- squares = [value**2 for value in range(1,11)] print(squares)
输出为:
[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]