摘要: 格式如图: 代码实现: def triangle(row): for i in range(1,row+1): for x in range(i): print('*',end='') print() for i in range(1,row+1): for x in range(row-i): p 阅读全文