摘要: 1、来源于数组的切片 package main import "fmt" func main() { a := [...]int{1, 2, 3, 4, 5, 6, 7, 8} //添加了...表示数组 b := a[2:6] //切片 fmt.Println(b) //[3 4 5 6] 左包右不 阅读全文
posted @ 2022-06-13 22:27 南风丶轻语 阅读(55) 评论(0) 推荐(0) 编辑
摘要: Centos7配置开机自启动脚本 chmod +x /etc/rc.d/rc.local 将命令写到 /etc/rc.d/rc.local 这个文件中 reboot 例如 阅读全文
posted @ 2022-06-13 14:10 南风丶轻语 阅读(79) 评论(0) 推荐(0) 编辑