用python画一个菱形

if n%2==0: for i in range(1,n): if i<=n/2: for j in range(1, abs(n - i) + 1): print(end=" ") for k in range(1,2*i): print("*",end="") else: a=n/2 b=i-a i=a-b j=1 while j

    推荐阅读