没注释的源代码
i = 1
while i <= 9 :
j = 1
while j <= i:
print('*',end = '')
j += 1
print()
i += 1
注释的源代码
i = 1
while i <= 9 : #外循环控制行数
j = 1
while j <= i: #内循环控制每行*个数
print('*',end = '')
j += 1
print()
i += 1