用一行python寫出1+2+3+…+10**8

----------函數 能夠用reduce()spa 這樣:reduce(lambda x,y:x+y,range(1,10**8))token 首先利用lambda造一個求和函數,在進行累加計算。 class
相關文章
相關標籤/搜索