#以下是一个用 Python 打印九九乘法表的示例程序:
#python
for i in range(1, 10):
for j in range(1, i+1):
print(f"{j}x{i}={i*j}",end="\t")
print('\n')
#使用Python的reduce函数(需要安装functools库)
#!/usr/bin/python
#coding:utf-8
#author:菜就多练呀
from functools import reduce
def add(x, y):
return x + y
total = reduce(add, range(1, 101))
print(total)