上一页 1 2 3 4 5 6 ··· 39 下一页
摘要: ###类型断言(带判断)案例 package main import "fmt" type Point struct { x int y int } func main() { // 带检测类型断言其他案例 var x interface{} var num float64 = 1.1 x = nu 阅读全文
posted @ 2023-03-18 15:45 六月OvO 阅读(6) 评论(0) 推荐(0) 编辑
摘要: ###报警脚本 import requests import json import time import sys from requests.auth import HTTPBasicAuth def formatMessage(queue_name,queue_count): message 阅读全文
posted @ 2023-03-15 10:37 六月OvO 阅读(26) 评论(0) 推荐(0) 编辑
摘要: ###编写一个学生考试系统 package main import ( "fmt" ) // 编写一个学生考试系统 type student struct { Name string Age int Score int } // 将 Pupil 和 Graduate 共有的方法也绑定到 *stude 阅读全文
posted @ 2023-03-11 14:30 六月OvO 阅读(9) 评论(0) 推荐(0) 编辑
摘要: package main import ( "day201/model" "fmt" ) func main() { // 创建一个student的实例 //var stu = model.Student{"小红",12} //fmt.Println(stu) // 定义 student 结构体是首 阅读全文
posted @ 2023-03-08 11:29 六月OvO 阅读(9) 评论(0) 推荐(0) 编辑
摘要: ###结构体变量的赋值 点击查看代码 package main import "fmt" type Stu struct { Name string Age int } func main() { // 方式一: 在创建结构体变量时,直接指定字段的值 var name1 = Stu{ "小明", 4 阅读全文
posted @ 2023-03-03 18:45 六月OvO 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ###学生案例 1)编写一个Student结构体,包含name、gender、age、id、score字段,分别为string、string、int、int、float64类型 2)结构体中声明一个say方法,返回string类型,方法返回信息中包含所有字段值 3)在main方法中,创建Studen 阅读全文
posted @ 2023-03-02 16:13 六月OvO 阅读(9) 评论(0) 推荐(0) 编辑
摘要: ###https://www.cnblogs.com/hhaostudy/p/15898030.html 阅读全文
posted @ 2023-02-21 10:55 六月OvO 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ###24位网段 10.8.0.0/24 10.8.0.0 10.8.0.254 0-255 1*256= 256 个ip 10.8.20.0/24 10.8.20.0 10.8.0.254 0-255 1*256= 256 个ip 10.8.100.0/24 10.8.100.0 10.8.0.2 阅读全文
posted @ 2023-02-18 17:48 六月OvO 阅读(841) 评论(0) 推荐(1) 编辑
摘要: 1.添加进一块数据盘 挂载到/mnt 2.以 dltech 库为例,将库的数据导出 # 导出数据去前可以优化一些参数 SHOW GLOBAL VARIABLES LIKE '%timeout%'; SET GLOBAL net_read_timeout = 9999; SET GLOBAL net_ 阅读全文
posted @ 2023-02-10 10:29 六月OvO 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 以14号库为例,8号库照猫画虎即可 1.首先先尝试连接redis,-h指定地址 -p指定端口 -n指定第几个库 切记不要先执行keys *, 可以先执行dbsize查看一下key的数量再决定是否执行keys * redis-cli -h r-bp13gnb9y2e0j6o9.redis.rds.al 阅读全文
posted @ 2022-12-30 12:08 六月OvO 阅读(1238) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 39 下一页