摘要: 在有很多的if-then-else语句的情况下,go语言可以写成: package main import ( "fmt" "time" ) func main() { t := time.Now() switch true{ case t.Hour() < 12: fmt.Println("Goo 阅读全文
posted @ 2020-05-22 16:15 AKUNFYK 阅读(198) 评论(0) 推荐(0) 编辑