我使用fmt.Print(a:"\n") eclipse編輯器會報錯syntax error: unexpected :, expecting comma or )
我使用fmt.Print(a:"\n")? eclipse編輯器會報錯syntax error: unexpected :, expecting comma or )
我使用fmt.Print(a:"\n")? eclipse編輯器會報錯syntax error: unexpected :, expecting comma or )
2018-11-15
2018-11-21
那個a:,是idea對函數中參數的一個提示,eclipse是沒有的,也不用的你手動打出來
2018-11-16
語法錯誤,a是你定義的變量.打印的時候a:肯定是會報錯的,除非你用連接符 .?