📜  python代码示例中的金字塔模式

📅  最后修改于: 2022-03-11 14:45:35.160000             🧑  作者: Mango

代码示例3
def pattern(n):    
  for i in range(0,n):       
    for j in range(0, i+1): 
      print("* " , end="")         
      print("\r") pattern(5