标签:auth author 简单 pre 循环 99乘法表 i+1 utf-8 练习
__author__ = ‘ZFH‘
#-*- coding:utf-8 -*-
for i in range(10): #外层循环,range(10),1-9
for j in range(1,i+1): #内层循环,每次循环从1开始到每一次的外层循环
print(‘%s * %s = %s \t‘ % (j,i,i*j),end=‘‘) #打印
print()
标签:auth author 简单 pre 循环 99乘法表 i+1 utf-8 练习
原文地址:https://www.cnblogs.com/fameg/p/9790059.html