Golang ã§è¨èªå¦ç100æ¬ããã¯ã® No.3 ã®åé¡ã解ãã¦ãã³ããã¼ã¯ã¨ã£ã¦ã¿ã - Qiita http://qiita.com/megu_ma/items/01029c3ca24fb9820373 æ£è¦è¡¨ç¾ã strings.Trim çã¯ã¨ã¦ã便å©ãªã®ã§ããããããããåä¸ã®é¢æ°å¼ã³åºãã«å¯¾ãã¦çé¢ç®ã«ã«ã¼ããåãä½ãã«ãªã£ã¦ãããæ»ãå¤ãã³ãã¼ãããåæã®ä½ãã«ãªã£ã¦ãã¾ããä¾ãã° func answer1() []int { // åèªã«å解 words := strings.Split(sentence, " ") var pi []int for _, word := range words { word = strings.Trim(word, ",") word = strings.Trim(word, ".") // pi = append(pi, utf8.R
{{#tags}}- {{label}}
{{/tags}}