python 99乘法表
2017-11-16 09:27
274 查看
#for 9*9乘法表
for i in range(1,10):
for j in range(1,i+1):
print '%s x %s = %s'%(i,j,str(i*j)),
print
# while 9*9乘法表
i = 1
while i < 10:
j = 1
while j < (i+1):
print '%s x %s = %s' % (i, j, str(i * j)),
j += 1
continue
i += 1
print
for i in range(1,10):
for j in range(1,i+1):
print '%s x %s = %s'%(i,j,str(i*j)),
# while 9*9乘法表
i = 1
while i < 10:
j = 1
while j < (i+1):
print '%s x %s = %s' % (i, j, str(i * j)),
j += 1
continue
i += 1
相关文章推荐
- python 99乘法表
- python的99乘法表
- Python小程序,99乘法表,长方形,三级菜单,购物,邮件,百钱买百鸡
- linux下的python小程序――99乘法表
- Python(5)使用for...in循环和列表推导式打印一个99乘法表
- python 写99乘法表
- python 99乘法表
- python 写99乘法表
- Python学习笔记(四)99乘法表(for)
- python 一个变量打印99乘法表
- python 3.0 实现99乘法表
- python 学习--99乘法表
- 以写代学:python 99乘法表
- python输出99乘法表
- python学习:99乘法口诀
- 循环嵌套打印99乘法表Python3
- Python 实现99乘法表
- Python——打印出完整的99乘法表
- 初学python:打印99乘法表
- java,python,shell,Scala写的99乘法表