利用Python一层循环打印 * 型三角形 除Python外的其他语言,要想在屏幕上打印如图三角形至少需要两层循环 利用Python,仅需一层循环即可 程序源码 line = 10 for x in range(0, line) : print(" " * (line - x