基础知识点

while和for循环的运用: #字符串换行输出 a=“asedrtszdfht122132687” i=0 line=1 js=1 while i<len(a): print(a[i],end="") if line==js: js=0 print() line+=1 js+=1 i+=1 #打印三角形输出 i=1 while i<6: j=1 while j<=i: print("@",end
相关文章
相关标签/搜索