上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 代码 package queue import "fmt" type Queue struct { Array []int Head int Rear int Capacity int } func NewQueue(capacity int) *Queue { return &Queue{ Hea 阅读全文
posted @ 2021-12-16 16:34 Cyber_nnno 阅读(337) 评论(0) 推荐(0)
摘要: 代码 package pubsub import ( "sync" "time" ) type ( subscriber chan interface{} // 订阅者管道 topicFunc func(v interface{}) bool // 主题过滤器 ) // 发布者对象 type Pub 阅读全文
posted @ 2021-12-16 16:33 Cyber_nnno 阅读(158) 评论(0) 推荐(0)
摘要: 代码 package calc import "fmt" type Number struct { Val int } const ( testConst1 = iota testConst2 testConst3 ) // 定义要使用的方法 type funcTest func(n int) *N 阅读全文
posted @ 2021-12-16 16:32 Cyber_nnno 阅读(91) 评论(0) 推荐(0)
摘要: 代码 func QuickSort(arr []int) []int { if len(arr) <= 1 { return arr } splitData := arr[0] //第一个数据 low := make([]int, 0, 0) //比我小的数据 height := make([]in 阅读全文
posted @ 2021-12-16 16:27 Cyber_nnno 阅读(170) 评论(0) 推荐(0)
摘要: 下载 地址:https://golang.google.cn/dl/ wget https://golang.google.cn/dl/go1.16.7.linux-amd64.tar.gz 解压(需要root权限) tar -C /usr/local -xzf go1.16.7.linux-amd 阅读全文
posted @ 2021-08-10 10:33 Cyber_nnno 阅读(453) 评论(0) 推荐(0)
摘要: 整形 类型符号范围 uint8 无 0 到 255 uint16 无 0 到 65535 uint32 无 0 到 4294967295 uint64 无 0 到 18446744073709551615 uint 无 32位操作系统上就是uint32,64位操作系统上就是uint64 int8 有 阅读全文
posted @ 2021-08-09 14:35 Cyber_nnno 阅读(121) 评论(0) 推荐(0)
摘要: 下载 地址:https://golang.google.cn/dl/ 配置 GOROOT是golang的安装目录 GOPATH是以后存golang项目的目录 阅读全文
posted @ 2021-08-09 11:53 Cyber_nnno 阅读(195) 评论(0) 推荐(0)
摘要: 关键词 进制 单词 缩写 二进制 bin binary 八进制 oct octonary 十进制 dec decimalist 十六进制 hex hexdecimalist 系统函数 二进制 binoct();//转为八进制 bindec();//转为十进制 binhex();//转为十六进制 八进 阅读全文
posted @ 2021-05-23 18:50 Cyber_nnno 阅读(146) 评论(0) 推荐(0)
摘要: 把public所有东西放到wwwroot目录下 修改.htaccess <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d 阅读全文
posted @ 2021-04-02 11:29 Cyber_nnno 阅读(428) 评论(0) 推荐(0)
摘要: <?php /** * Created by PhpStorm. * User: 张永峰 * Date: 2021/3/15 * Time: 11:11 * ━━━━━━━━━神兽出没━━━━━━━━━ * ┏┓ ┏┓+ + * ┏┛┻━━━┛┻┓ + + * ┃ ┃ * ┃ ━ ┃ ++ + + 阅读全文
posted @ 2021-04-01 18:01 Cyber_nnno 阅读(278) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页