摘要: 1. switch switch 语句是编写一连串 if - else 语句的简便方法。它运行第一个 case 值, 值等于条件表达式的子句。 Go 的 switch 语句类似于 C、C++、Java、JavaScript 和 PHP 中的,不过 Go 只会运行选定的 case,而非之后所有的 ca 阅读全文
posted @ 2024-10-09 14:00 yyyyyllll 阅读(28) 评论(0) 推荐(0)