2022年04月13日 701 阅读 Golang go基础-指针 指针go语言中的指针不能进行偏移量和运算Go语言中的指针操作非常简单只需要记住两个操作符:&(取地址)和*(根据地址取值)a := 1 // 每个变量都会有一个内存地址 b := &am...
2022年04月07日 755 阅读 Golang go基础-流程控制 流程控制1. 条件语句if condition { // 处理一些东西 } // if else if condition { // 如果condition为真 // condition...
2022年04月06日 1.1k 阅读 Golang go基础-数据类型二 数据类型概览基本数据类型布尔类型:bool整型:int8、byte、int16、int、uint、uintptr 等浮点类型:float32、float64复数类型:complex64、comp...
2022年04月06日 760 阅读 php php统计数组的每个值的个数 php统计数组的每个值的个数$arr = [1, 2, 3, 4, 5, 1, 2, 3]; $count = array_count_values($arr); // 输出结果 [ 1 ...
2022年04月03日 780 阅读 Golang go基础-数据类型一 数据类型概览基本数据类型布尔类型:bool整型:int8、byte、int16、int、uint、uintptr 等浮点类型:float32、float64复数类型:complex64、comp...