当前位置:网站首页>Go basic anonymous variable
Go basic anonymous variable
2022-07-02 23:14:00 【Yi Yue Wang Chao】
go Anonymous variables are often used in ,go What are anonymous variables in , What's the usage? ?
Code :
package main import "fmt" func GetData() (int, int) { return 100, 200 } func main(){ a, _ := GetData() _, b := GetData() //c := GetData() // Report errors :assignment mismatch: 1 variable but GetData returns 2 values fmt.Println(a, b) }Running results :
边栏推荐
- 分布式监控系统zabbix
- 泛型与反射,看这篇就够了
- Jerry's built-in shutdown current is 1.2ua, and then it can't be turned on by long pressing [chapter]
- FOC矢量控制及BLDC控制中的端电压、相电压、线电压等概念别还傻傻分不清楚
- PMP project integration management
- [redis notes] compressed list (ziplist)
- Boost库链接错误解决方案
- 详解Promise使用
- Go language sqlx library operation SQLite3 database addition, deletion, modification and query
- 20220524_数据库过程_语句留档
猜你喜欢

高数有多难?AI 卷到数学圈,高数考试正确率 81%!

Deep analysis of data storage in memory - C language

4 special cases! Schools in area a adopt the re examination score line in area B!

解决:exceptiole ‘xxxxx.QRTZ_LOCKS‘ doesn‘t exist以及mysql的my.cnf文件追加lower_case_table_names后启动报错
![[Solved] Splunk: Cannot get username when all users are selected“](/img/13/1e824c8005701e21fc5b4e73308d53.png)
[Solved] Splunk: Cannot get username when all users are selected“

Lambda表达式:一篇文章带你通透

Hisilicon VI access video process

PotPlayer设置最小化的快捷键

Splunk audit setting

Generics and reflection, this is enough
随机推荐
深度剖析数据在内存中的存储----C语言篇
Win11系统explorer频繁卡死无响应的三种解决方法
密码技术---密钥和SSL/TLS
潘多拉 IOT 开发板学习(HAL 库)—— 实验3 按键输入实验(学习笔记)
QT qpprogressbar details
移动端 1px 像素兼容性问题,实现1px 边框
SQL advanced syntax
Talk about memory model and memory order
CDN 加速,需要域名先备案
Explain promise usage in detail
损失函数~
PMP project integration management
ServletContext learning diary 1
Potplayer set minimized shortcut keys
Win11如何开启目视控制?Win11开启目视控制的方法
Construction of Hisilicon 3559 universal platform: draw a frame on the captured YUV image
Go multithreaded data search
为什么RTOS系统要使用MPU?
Distributed monitoring system ZABBIX
Jerry's prototype will trigger shutdown after multiple touches [chapter]
