当前位置:网站首页>2022-06-24:golang选择题,以下golang代码输出什么?A:1;B:3;C:4;D:编译失败。 package main import ( “fmt“ ) func mai
2022-06-24:golang选择题,以下golang代码输出什么?A:1;B:3;C:4;D:编译失败。 package main import ( “fmt“ ) func mai
2022-06-25 09:58:00 【福大大架构师每日一题】
2022-06-24:golang选择题,以下golang代码输出什么?A:1;B:3;C:4;D:编译失败。
package main
import (
"fmt"
)
func main() {
var nums1 []interface{
}
nums2 := []int{
1, 3, 4}
nums3 := append(nums1, nums2)
fmt.Println(len(nums3))
}
答案2022-06-24:
答案选A。nums2只是nums3的一个元素。
边栏推荐
- Fluent: target support file /pods runner / pods runner frameworks Sh: permission denied - stack overflow
- New school: no fraud Economics
- Shardingsphere proxy 4.1 sub database and sub table
- SparseArray details
- Houdini图文笔记:Your driver settings have been set to force 4x Antialiasing in OpenGL applications问题的解决
- Free applet making tool, how to make wechat applet
- 申请多域名SSL证书的要求及注意事项
- Best producer consumer code
- Consul的基本使用与集群搭建
- Jetpack compose layout (II) - material components and layout
猜你喜欢
Minio基本使用与原理
Opencv learning (I) -- environment building
【OpenCV 例程200篇】210. 绘制直线也会有这么多坑?
链表 删除链表中的节点
Learning notes of rxjs takeuntil operator
Flask博客实战 - 实现侧边栏文章归档及标签
Request&Response有这一篇就够了
Create menu file
Opencv learning (II) -- installing opencv on raspberry pie
【历史上的今天】6 月 24 日:网易成立;首届消费电子展召开;世界上第一次网络直播
随机推荐
Kotlin arrays and collections (1) {create arrays, use arrays, use for in loops to traverse arrays, use array indexes, and multi-dimensional arrays}
浅谈二叉树
我希望按照我的思路尽可能将canvas基础讲明白
DigiCert和GlobalSign单域名OV SSL证书对比评测
The path of Architects
Redis(一)原理与基本使用
clang frontend command failed with exit code 250
Fluent: target support file /pods runner / pods runner frameworks Sh: permission denied - stack overflow
[paper reading | deep reading] line: large scale information network embedding
【图像融合】基于形态学分析结合稀疏表征实现图像融合附matlab代码
Basic use and principle of Minio
(forwarding articles) after skipping multiple pages, shuttle returns to the first page and passes parameters
Shardingsphere proxy 4.1 sub database and sub table
How to install SSL certificates in Microsoft Exchange 2010
【论文阅读|深读】LINE: Large-scale Information Network Embedding
Opencv learning (II) -- installing opencv on raspberry pie
Handler asynchronous message processing
Android database security: after the user exits, the transaction rollback log still stores relevant data information
Dependent properties, dependent additional properties, and type conversions
NFC read / write mode development - book summary