热门

最新

红包

立Flag

投票

同城

我的

发布
m0_71327177
一个乖乖码字的程序猪
3 年前
truem0_71327177

Go每日一题 今日(2022-08-03) 的题目如下
1023 次点击 · 5 赞 ·不到1分钟之前 开始浏览 · 来源「Golang来啦」
下面这段代码输出什么?

type Direction int

const (
North Direction = iota
East
South
West
)

func (d Direction) String() string {
return [...]string{"North", "East", "South", "West"}[d]
}

func main() {
fmt.Println(South)
}

C站每日精选
CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
Python之Jsonpath库的使用 快来看看http://t.csdn.cn/rBIza
立即登录