2023年7月27日
摘要: mysql启动报错:ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost:3306' (10061) 问题排查: netstat -ano | findstr 3306 ,检查端口3306上是否有进程运行(或直接检查任务管理器 阅读全文
posted @ 2023-07-27 19:29 shui00cc 阅读(2636) 评论(0) 推荐(0)
  2023年7月21日
摘要: 在使用含字符串数组的结构体时,我出现了以下问题 1 package main 2 3 import "github.com/gin-gonic/gin" 4 5 type MyJson struct { 6 Functions []string `json:"functions"` 7 Desc s 阅读全文
posted @ 2023-07-21 15:29 shui00cc 阅读(238) 评论(0) 推荐(0)
  2023年7月1日
摘要: 静态定位(static): position属性的默认值为static,会忽略 top, bottom, left, right 或者 z-index 声明。 相对定位(relative)与绝对定位(absolute): 相对定位偏移参考元素是元素本身,而绝对定位以父辈元素中最近的定位元素为参考坐标 阅读全文
posted @ 2023-07-01 09:19 shui00cc 阅读(40) 评论(0) 推荐(0)
  2023年6月8日
摘要: 向上取整:math.ceil() import math math.ceil(-0.9) >>> 0 math.ceil(0.3) >>> 1 向下取整:math.floor()、int()、//(整除) math.floor(-0.3) >>> -1 int(0.9) >>> 0 3 // 2 # 阅读全文
posted @ 2023-06-08 22:01 shui00cc 阅读(565) 评论(1) 推荐(0)
  2023年6月7日
摘要: 举例展示 Python在循环中修改遍历的字符串,将不会影响循环的遍历顺序和执行轮数 astr = "abcaef" bstr = "bcef" for i in astr: if i not in bstr: astr = astr.replace(i,'') print(i) 如上示例代码中,当i 阅读全文
posted @ 2023-06-07 17:47 shui00cc 阅读(287) 评论(0) 推荐(0)
  2023年6月4日
摘要: git init 这个命令用于在当前目录中创建一个新的 Git 仓库。它会在当前目录下生成一个名为.git的子目录 git remote add origin git@github.com:shui00cc/repository.git 这个命令用于将远程仓库repository的 URL 添加到你 阅读全文
posted @ 2023-06-04 20:35 shui00cc 阅读(39) 评论(0) 推荐(0)