results = list(range(10, 100))
n = 10 # 每10个数换一行
for i in range(len(results)):
print(results[i], end=' ')
if (i+1) % 10 == 0:
print(' ')
结果如下:
results = list(range(10, 100))
n = 10 # 每10个数换一行
for i in range(len(results)):
print(results[i], end=' ')
if (i+1) % 10 == 0:
print(' ')
结果如下: