Python 列表实现杨辉三角 杨辉三角 #定义一个二维列表 xh = [] number = int(input('请输入XH三角层数:')) #外层循环控制层数 for i in range(number): #每次循环前清空数据 ls =