#乘法口诀 for i in range(1,10): for j in range(1,i+1): print ( j,'*',i,'=',j*i,'',' ',end='') print(end='\n') 注意使用的Python环境为 3.* 2 for i in range(1, 10): print " ".join(["%d*%d=%d" % (j, i, i*j) for j in range(1, i+1)])…
python的乘法口诀表 python的乘法口诀表 用python来写一个脚本,使得这个脚本在运行后自动输出乘法口诀表. pyton的脚本如下: #!/usr/bin/env python #coding:utf-8 """ file: chengfa.py date: 2017-08-24 author:lijian desc: """ for i in range(1,10): for j in range(1,i+1): print &qu…