- 博客(6)
- 收藏
- 关注
原创 为什么Go没有三元运算符
Why does Go not have the ?: operator?为什么Go没有?:运算符?There is no ternary testing operation in Go.Go中没有三元测试操作。You may use the following to achieve the same result:您可以使用以下方法获得相同的结果:if expr { n = ...
2020-04-17 10:40:17
529
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人