n = 1 while n <= 5: print('*' * n) n = n + 1 n = 1 while n <= 5: m = 0 while m < n: print('*', end='') m += 1 n += 1 print()
print('*' * n):重复输出*号N次。
print('*', end=''):输出的*号后面不接任何字符