python算术

'''
1、对每个数进行平方,
2、求和
'''
print(sum(x ** 2 for x in range(4)))

 

posted @ 2019-05-09 14:03  jiuchen  阅读(116)  评论(0编辑  收藏  举报