输出乘法口诀表

输出乘法口诀表


first = 1
while first<=9:

  sec = 1
  while sec <= first:
  print( str(sec)+"*"+ str(first) +"="+str(sec * first), end="\t")#\t制表符,作用是让表格对齐
  sec += 1

print()#换行

猜你喜欢

转载自www.cnblogs.com/hongboliu/p/9263084.html