循环

2018-06-30

【99乘法表】

#!/usr/bin/env python3
#-*- coding: utf-8 -*-
i = 1
while i < 10:
     j = 1
     while j <= i:
         print('{}x{}='.format(j,i)+str(i*j),end='\t')
         j += 1
     i += 1
#     if i == 10:
#         continue
#   print('\n')
     print()

 

posted @ 2018-06-30 10:03  凌枫恋  阅读(55)  评论(0编辑  收藏  举报