# -*- coding: utf-8 -*-num = 0for i in range(101): num = num+iw = '1+2+3............+100='print ('Result:%s %s' % (w,num))
# -*- coding: utf-8 -*-print( sum( range( 1 ,101 ) ) )
本文共 231 字,大约阅读时间需要 1 分钟。
# -*- coding: utf-8 -*-num = 0for i in range(101): num = num+iw = '1+2+3............+100='print ('Result:%s %s' % (w,num))
# -*- coding: utf-8 -*-print( sum( range( 1 ,101 ) ) )
转载于:https://my.oschina.net/ilimhumar/blog/2873284