- 博客(7)
- 收藏
- 关注
原创 Go中for range的时候,地址是否发生变化-面试题
1,先看下面这段代码package mainimport "fmt"type girl struct { Name string Age int}func main() { gl := make(map[string]*girl) studs := []girl{ {Name: "Lili", Age: 23}, {Name: "Lucy", Age: 24}, {Name: "Han Mei", Age: 21}, } for _, v := range stud
2022-03-05 08:34:36
1901
2
原创 Go中的map如何实现顺序读取-面试题
package mainimport ( "errors" "fmt" "sort")//程序入口func main() { sortTemp := map[string]int{ "hello": 0, "country": 1, "water": 9, "main": 3, } data, err := sortData(sortTemp) if err != nil { fmt.Println(err) return } fmt.Pr
2022-02-19 08:42:56
764
原创 phpmailer使用gmail时,解决Could not authenticate.2131的参考方法
问题还原:1,SMTP ERROR: Password command failed: 534-5.7.142,SMTP ERROR: Password command failed 535-5.7.8 Username and Password not accepted.解决方法:1,进入自己的gmail,依次进入设置->查看所有设置->转发和POP/IMAP。启用 IMAP,并保存更改2,点击进入http://www.google.com/settings/u/1/securit
2022-02-03 11:11:27
1638
原创 LNMP环境源码部署thinkphp6项目-nginx
1,下载wget http://nginx.org/download/nginx-1.9.9.tar.gz2,解压tar -zxvf nginx-1.9.9.tar.gz3,make4,make install配置文件目录 /usr/local/nginx/conf启动目录 /usr/local/nginx/sbin
2022-01-22 22:53:29
2195
原创 LNMP环境源码部署thinkphp6项目-php8.1
Php1,下载php2,./configure --prefix=/home/php/ --enable-fpm --enable-debug --with-pdo-mysql --with-gd3,make4,make install简化执行命令Vim ~/.bash_profileSource ~/.bash_profile
2021-11-24 19:21:37
1468
原创 LNMP环境源码部署thinkphp6项目-mysql5.7
LNMP环境部署-mysql**1,下载mysql安装包:**http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.13.tar.gz**2,解压安装包:**tar -zxvf mysql-5.7.13.tar.gz3,安装mysql需要的依赖工具:yum install cmake gcc-c++ ncurses-devel perl-Data-Dumper boost boost-doc boost-devel4,进入解压后的目录下,使用c
2021-11-22 11:15:02
943
原创 layui select的监听事件写法
html:<div class="layui-form-item"> <label class="layui-form-label">跳转类型</label> <div class="layui-input-inline"> <script type="text/html" template> ...
2020-04-27 09:29:30
744
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人