首页 > 编程语言 > 详细

python九九乘法表

时间:2018-10-19 17:22:55      阅读:178      评论:0      收藏:0      [点我收藏+]
[root@hmaster pythoncode]# vim 001jiujiucf.py
[root@hmaster pythoncode]# python 001jiujiucf.py
11=1
1
2=2 22=4
1
3=3 23=6 33=9
14=4 24=8 34=12 44=16
15=5 25=10 35=15 45=20 55=25
1
6=6 26=12 36=18 46=24 56=30 66=36
1
7=7 27=14 37=21 47=28 57=35 67=42 77=49
18=8 28=16 38=24 48=32 58=40 68=48 78=56 88=64
19=9 29=18 39=27 49=36 59=45 69=54 79=63 89=72 9*9=81
[root@hmaster pythoncode]# vim 001jiujiucf.py

x=1
y=1
while x<=9 :
while x>=y :
print(" %d%d=%d"%(y,x,yx),end=‘‘) #不换行写法
y=y+1
print("")
x=x+1
y=1

python九九乘法表

原文:http://blog.51cto.com/6000734/2306575

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!