N=100print([[xforxinrange(1,100)][i:i+3]foriinrange(0,100,3)])
[x*xforxinrange(1,11)]
fromfunctoolsimportreduce1.使用sum内置求和函数num=sum([1,2,3,10248])print(num)2.reduce函数num1=reduce(lambdax,y:...
count=sum(range(0,101))print(count)
一行代码打印乘法口诀print(&039;\n&039;.join([&039;&039;.join(["%2sx%2s=%2s"%(j,i,i*j)forjinrange(1,i+1)])for...