首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >python九九乘法表

python九九乘法表

作者头像
py3study
发布2020-01-15 11:42:20
5000
发布2020-01-15 11:42:20
举报
文章被收录于专栏:python3python3

[root@hmaster pythoncode]# vim 001jiujiucf.py [root@hmaster pythoncode]# python 001jiujiucf.py 11=1 12=2 22=4 13=3 23=6 33=9 14=4 24=8 34=12 44=16 15=5 25=10 35=15 45=20 55=25 16=6 26=12 36=18 46=24 56=30 66=36 17=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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-06-30 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档