* * * * * * * * * * * * * * * for i in range(0, 5): for j in range(0, i+1): print('*', end=' ') print() 来源:oschina链接:https://my.oschina.net/u/4421096/blog/3139417 标签 triangle