摘要: 2022-10-14:以下go语言代码输出什么?A:0;B:7;C:9;D:不能编译。 package main import "fmt" func main() { a := []int{7, 8, 9} fmt.Println(a[real(2)]) } 答案选C。go中slice的下标不能是浮 阅读全文
posted @ 2022-10-14 23:34 福大大架构师每日一题 阅读(49) 评论(0) 推荐(0) 编辑