Re: [問題] 請問這個像聖誕樹的程式要怎麼寫阿?

看板Python作者 (gfs)時間14年前 (2009/10/21 13:47), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/4 (看更多)
#!/usr/bin/env python i,p,n=1,10,10 while i < n: print ' '*p+'*'*(i+(n-p)) i=i+1 p=n-i+1 ※ 引述《christensen (dance of Night)》之銘言: : http://www.wretch.cc/album/show.php?i=sosocaca&b=55&f=1904489734&p=24 : 雖然這好像是基礎的 但對我這個初學者來講 : 是在傷透腦筋拉 : 拜託高手教教我巴 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 174.129.196.149

10/22 15:08, , 1F
thank you very much!!
10/22 15:08, 1F
文章代碼(AID): #1Atg1ct8 (Python)
討論串 (同標題文章)
文章代碼(AID): #1Atg1ct8 (Python)