second = 1
while second <= 9:
first = 1
while first <= second:
print("%d * %d =%2d " % (first, second, first * second)),# python2.7版本不换行输出格式,3.0版本为 print("%d * %d =%d " % (first, second, first * second), end=(""))

python中输出一个九九乘法表

        first = first + 1 
print("")
second += 1

相关文章:

  • 2021-12-10
  • 2021-05-30
  • 2021-11-11
  • 2021-11-10
  • 2022-12-23
  • 2022-01-11
  • 2022-01-22
猜你喜欢
  • 2022-01-20
  • 2022-03-09
相关资源
相似解决方案