标签:乘法表 div code 手写 基础 span bsp odi class
最近学习python基础,随手写个9*9乘法表记录一下:
#! -*- coding:utf-8-*- #j(被乘数)*i(乘数) i = 1 while i <= 9: j = 1 while j <= 9: #乘数与被乘数相等回行 if i == j: print(j,"*",i,"=",i*j) break #格式,不回行 print(j,"*",i,"=",i*j,end = " ") j+=1 i+=1
标签:乘法表 div code 手写 基础 span bsp odi class
原文地址:https://www.cnblogs.com/polite-chb/p/12252103.html