用python写一个九九乘法表-2月19日/2018

Posted bushii

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用python写一个九九乘法表-2月19日/2018相关的知识,希望对你有一定的参考价值。

first = 1


while first<=9:
  sec=1
  while sec<=first:
    print(str(sec),"x",str(first),"=",first*sec,end="\t")
    sec+=1
  print()
  first+=1

以上是关于用python写一个九九乘法表-2月19日/2018的主要内容,如果未能解决你的问题,请参考以下文章