摘要: f=0 c=0 for i in range(1,101): f=i*(3*i-1)/2 print('%-5.2d '%(f),end="") c=c+1 if(c%10==0): print('\n') 输入几个数,以0为结束,计算和与均值 阅读全文
posted @ 2019-08-04 15:45 Sean_Martin 阅读(1060) 评论(0) 推荐(0)
摘要: import math 阅读全文
posted @ 2019-08-04 11:44 Sean_Martin 阅读(3712) 评论(0) 推荐(0)