上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 51 下一页
摘要: server.go package main import ( "bufio" "fmt" "io" "net" "time" ) func tcpPipe(conn *net.TCPConn) { ipStr := conn.RemoteAddr().String() defer func() { 阅读全文
posted @ 2022-04-14 01:16 我在路上回头看 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 反射 package main import ( "fmt" "reflect" ) type Student struct { name string } type MyInt int func main() { /*Type的主要方法 Kind()返回一个常量,表示具体类型的底层类型 Elem( 阅读全文
posted @ 2022-04-13 20:18 我在路上回头看 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 在range语句中生成的数据的值是真实集合元素的副本,它们不是原有元素的引用。这意味着更新这些值将不会 修改原来的数据,同时也意味着使用这些值的地址将不会得到原有数据的指针。 package main import "fmt" func main(){ data := []int{1,2,3} fo 阅读全文
posted @ 2022-04-13 14:15 我在路上回头看 阅读(59) 评论(0) 推荐(0) 编辑
摘要: From golang:1.16-alpine3.13 AS builder WORKDIR /app COPY . . RUN go build -o main main.go From alpine:3.13 WORKDIR /app COPY --from=builder /app/main 阅读全文
posted @ 2022-04-03 21:28 我在路上回头看 阅读(140) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "github.com/gin-gonic/gin" ) func func1(c *gin.Context){ fmt.Println("func1") } func func2(c *gin.Context){ fmt.Println("f 阅读全文
posted @ 2022-03-22 13:31 我在路上回头看 阅读(283) 评论(0) 推荐(1) 编辑
摘要: # py3.7 https://docs.python.org/zh-cn/3/whatsnew/3.7.html # py3.8 https://docs.python.org/zh-cn/3/whatsnew/3.8.html # py3.9 https://docs.python.org/zh 阅读全文
posted @ 2022-03-19 20:47 我在路上回头看 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 打开windows的我的电脑,在最上方目录栏输入%APPDATA%,回车,接着会定位到一个新的目录, 目录路径为C:\Users\Administrator\AppData\Roaming,在这个目录中新建一个pip文件夹, 然后在pip文件夹中新建个pip.ini文件,最后再新建的pip.ini文 阅读全文
posted @ 2022-03-18 03:40 我在路上回头看 阅读(1072) 评论(1) 推荐(1) 编辑
摘要: # 插件名称 Python Type Hint # 如何ctrl+s保存时格式化,推荐安装yapf包 (flake8貌似不支持有类型注解的) 1.安装yapf包:pip install yapf 2.在vscode中设置中搜索python 3.打开settings.json文件,添加如下代码 { . 阅读全文
posted @ 2022-03-18 03:18 我在路上回头看 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: className = ["jd_num01","jd_num02","tx_num01", "tx_num02", "zj_num01", "ali_num01"] for name in className: # 可以传元组,多个参数表示|(或)的意思,同样的endswith也可以传元组 if 阅读全文
posted @ 2022-03-18 01:25 我在路上回头看 阅读(136) 评论(0) 推荐(0) 编辑
摘要: samba介绍 SMB(Server Message Block)协议实现文件共享,也称为CIFS(Common Internet File System ) 是Windows和类Unix系统之间共享文件的一种协议 客户端主要是Windows;支持多节点同时挂载以及并发写入 主要用于windows和 阅读全文
posted @ 2022-03-15 20:40 我在路上回头看 阅读(298) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 51 下一页