Questions tagged «rune»

7
什么是符文?
什么是runeGo? 我一直在谷歌搜索,但Golang只说了一行:rune是的别名int32。 但是,为什么像交换案例一样在整数周围使用整数呢? 以下是函数交换案例。什么都<=和-? 为什么没有switch任何论点呢? &&应该是说和,但什么是r <= 'z'? func SwapRune(r rune) rune { switch { case 'a' <= r && r <= 'z': return r - 'a' + 'A' case 'A' <= r && r <= 'Z': return r - 'A' + 'a' default: return r } } 其中大多数来自http://play.golang.org/p/H6wjLZj6lW func …
186 go  rune 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.