python,乘法九九表小程序

num1 = 1
num2 = 1
while num1 <= 9:
  while num2 <= num1:
    print(str(num1)+"*"+str(num2)+"="+str(num1*num2)+" ",end="")
    num2 +=1
  print()
  num2 = 1
  num1 += 1

 

 

posted @ 2019-11-12 21:46  Iceberg_710815  阅读(224)  评论(0编辑  收藏  举报