天天看點

go-tour練習解答Exercise: Loops and FunctionsExercise: MapsExercise: SlicesExercise: Fibonacci closureAdvanced Exercise: Complex cube rootsExercise: ErrorsExercise: ImagesExercise: Rot13 ReaderExercise: Equivalent Binary TreesExercise: Web Crawler

go-tour對于想學習golang的人來說是一個很好的教程。

提醒下,如果是後者,這篇文章中的程式對應的import包就需要進行相應修改了。

下面給出我的go-tour中的Exercise的解答(在web上已經測試通過)

第一個循環10次:

<a></a>

第二次無限接近:

本文轉自軒脈刃部落格園部落格,原文連結:http://www.cnblogs.com/yjf512/archive/2012/12/09/2810302.html,如需轉載請自行聯系原作者