上一页 1 2 3 4 5 6 7 8 ··· 22 下一页
摘要: Go语言基础之指针 区别于C/C++中的指针,Go语言中的指针不能进行偏移和运算,是安全指针。 要搞明白语言中的指针需要先知道3个概念:指针地址、指针类型和指针取值 Go语言中的指针 任何程序数据载入内存后,在内部都有他们的地址,这就是指针。而为了保存一个数据在内存中的地址,我们就需要 指针变量。 阅读全文
posted @ 2021-01-18 08:15 zhangsima 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 切片 slice 因为数组的长度是固定的并且数组长度属于类型的一部分,所以数组有很多的局限性,例如 切片 是一个拥有相同类型元素的可变长度的序列,它是基于数组类型做的一层封装吗,他非常灵活,支持自动扩容 切片是一个引用类型,他的内部结构包括地址 长度 容量,切片一般用于快速地操作一块数据集合 切片的 阅读全文
posted @ 2021-01-16 22:49 zhangsima 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 编译 使用 go build 1.在项目目录下执行go build 2.在其他路径下执行 go build ,需要在后面加上项目的路径(项目路径从GOPATH/src后开始写,编译之后的 可执行文件就保存在当前目录下) 3. go build -o hello.exe 4.go run main.g 阅读全文
posted @ 2021-01-15 23:09 zhangsima 阅读(76) 评论(0) 推荐(0) 编辑
摘要: where are you born come from are you married single my name is leon 27years old ,i was born in a city b province in 1993 it is city which is famous fo 阅读全文
posted @ 2020-06-19 16:09 zhangsima 阅读(275) 评论(0) 推荐(0) 编辑
摘要: where are you born from come form are you married single my name is zhang ,27years old ,i was born in a city ,b province in 1993 is is a ctiy which is 阅读全文
posted @ 2020-06-17 15:55 zhangsima 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 配置用户名和邮箱: $ git config --global user.name "your_name" $ git config --global user.email "your_email@example.com" 生成密钥对: ssh-keygen -t rsa -b 4096 -C "y 阅读全文
posted @ 2020-02-29 17:09 zhangsima 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1. 点击切换验证码 <img onclick="this.src='{:captcha_src()}?'+Math.random()" src="{:captcha_src()}" alt="captcha" /> 2.判断验证码 $captcha = new \think\captcha\Cap 阅读全文
posted @ 2020-01-21 10:44 zhangsima 阅读(112) 评论(0) 推荐(0) 编辑
摘要: <?php //iami //5ime.cn error_reporting(E_ALL || ~E_NOTICE); //禁止显示PHP错误信息 $qq=$_GET['qq']; //获取URL参数 $type =$_GET['type']; if ($type=='')//默认电脑QQ跳转 { 阅读全文
posted @ 2020-01-21 09:53 zhangsima 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 原因分析 出现这种情况的原因是我们使用了http的方式clone代码到本地,相应的,也是使用http的方式将代码push到服务器 解决办法 解决办法很简单,将http方式改为ssh方式即可。 先查看当前方式: git remote -v 把http方式改为ssh方式。先移除旧的http的origin 阅读全文
posted @ 2020-01-14 19:25 zhangsima 阅读(359) 评论(0) 推荐(0) 编辑
摘要: //开始时间为上个月月出 $time = date('Y-m-01' , time()); $stime = strtotime('-1 month' , strtotime($time)); //结束时间为 当月月底 下月月初之前 $etime = strtotime("+1 month", st 阅读全文
posted @ 2019-10-31 10:35 zhangsima 阅读(122) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 22 下一页