python 打印菱形代碼

a = [0,1, 2, 3, 2,1,0]  blog b = [' ' * (3-i) + '*' * (2*i+1) for i in a]  im for line in b:  img print(line)co
相關文章
相關標籤/搜索