1. python输出星号组成的菱形的方法:. N=int(input('输入一个n的值:')). For i in range(1,n,1):. print(('*'*i).center(n*3)).
確定! 回上一頁