我无语了 两种方法全不对 求大神指点!!!
1 回答
已采纳
pardon110
TA贡献1038条经验 获得超227个赞
注意缩进
C:\Users\Administrator>py -3 Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: conda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. >>> x1=1 >>> d=3 >>> n=100 >>> x100=x1+(n-1)*d >>> s=(x1+x100)*n/2 >>> print(s) 14950.0 >>>
添加回答
举报
0/150
提交
取消