类型符文是int32类型的别名。符文文字是一个整数值。
如果将字符串值存储在符文文字中, 它将提供字符的ASCII值。例如, “ A”的符文文字为65。
符文类型示例
package main
import(
"fmt"
"reflect"
)
func main(){
rune := 'A'
fmt.Printf("%d \n", rune)
fmt.Println(reflect.TypeOf(rune))
}
输出:
65
int32
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_50030.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57