qiuqiu1027的博客python打印正方形实心打印空心打印x形 实心打印 n=float(input('请输入正方形边长:')) n=int(n//1) if n<0: print('您输入的数字不符合要求') for i in range(n): for j in range(n): print...
weixin_39680380的博客简单的for循环打印三角形1,for循环方法实现星星三角代码:for i in range(0,5):for j in range(i+1):if i == 4:print("* ",end="")continueif j == 0 or j == i:print("* ",end="")else:print(" ",end="")print()2....