gopl-zh.github.com/exercise/ex-ch1-12.md
2015-12-09 15:57:17 +08:00

3 lines
305 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

**練習 1.12:** 脩改Lissajour服務從URL讀取變量比如你可以訪問http://localhost:8000/?cycles=20這個URL這樣訪問可以將程序裏的cycles默認的5脩改為20。字符串轉換為數字可以調用strconv.Atoi函數。你可以在dodoc裏査看strconv.Atoi的詳細說明。