#n*n乘法表用函数
def renyi_chengfabiao():
for a in range(1,x+1):
for b in range(1,x+1):
c=a*b
if b<=a:
print(int(b),"*",int(a),"=",int(c),end=" ")
print()
while True:
x = int(input("请输入你要打印的是几乘法口诀(1、2、3、4、5、6、7、8、9)"))
renyi_chengfabiao()
标签:chengfabiao,函数,python,range,renyi,几乘,乘法表
From: https://blog.51cto.com/u_16227531/7974965