print("计算1+2+3+到100:") result = 0 for i in range(101): result +=i print(result)
这个小程序结果怎么横向输出。
收起
print(result,end='\t') 改成这样就可以
报告相同问题?