for遍历
name = ''for x in name:print(x)else: print("没有数据")九九乘法表
i &#61; 1while i<&#61;9:j&#61;1 while j<&#61;i: print("%d*%d&#61;%-2d "%(j,i,i*j),end&#61;&#39;&#39;) j&#43;&#61;1 print(&#39;\n&#39;) i&#43;&#61;1
转:https://www.cnblogs.com/xubing111/p/8953677.html