ZhangZhihui's Blog  
上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 116 下一页

2023年9月19日

摘要: fake.go package fake import "fmt" type ExampleStruct struct { Item1 string Item2 string Item3 string } func (e ExampleStruct) LogLine() { fmt.Printf(" 阅读全文
posted @ 2023-09-19 11:18 ZhangZhihuiAAA 阅读(20) 评论(0) 推荐(0)

2023年9月18日

摘要: fibonacci.go package algorithms // Dynamic Programming func Fibonacci1(n int) int { if n <= 0 { return 0 } if n <= 2 { return 1 } previous1 := 1 previ 阅读全文
posted @ 2023-09-18 20:50 ZhangZhihuiAAA 阅读(25) 评论(0) 推荐(0)

2023年9月17日

摘要: sort.go package algorithms func MergeSort(items []int) []int { n := len(items) var combined []int switch { case n <= 1: combined = items case n == 2: 阅读全文
posted @ 2023-09-17 22:35 ZhangZhihuiAAA 阅读(18) 评论(0) 推荐(0)

2023年9月14日

摘要: $ ls readme readme $ zip readme zip error: Nothing to do! (readme.zip) $ ls readme* readme $ zip readme.zip readme adding: readme (deflated 4%) $ ls r 阅读全文
posted @ 2023-09-14 16:59 ZhangZhihuiAAA 阅读(24) 评论(0) 推荐(0)
 
摘要: Adding user to the docker group can fix this issue: zzh@ZZHPC:~$ sudo usermod -aG docker zzh zzh@ZZHPC:~$ newgrp docker zzh@ZZHPC:~$ docker run hello- 阅读全文
posted @ 2023-09-14 09:25 ZhangZhihuiAAA 阅读(24) 评论(0) 推荐(0)

2023年9月11日

摘要: 阅读全文
posted @ 2023-09-11 11:19 ZhangZhihuiAAA 阅读(14) 评论(0) 推荐(0)

2023年9月9日

摘要: zzh@ZZHPC:/zdata/MyPrograms/Go/aaa/Ch06/06_02$ go test -run NONE -bench . -count=5 -benchmem | tee cols.txt goos: linux goarch: amd64 pkg: zzh/aaa/Ch0 阅读全文
posted @ 2023-09-09 16:44 ZhangZhihuiAAA 阅读(42) 评论(0) 推荐(0)

2023年9月7日

摘要: POSIX basic and extended[edit] In the POSIX standard, Basic Regular Syntax (BRE) requires that the metacharacters ( ) and { } be designated \(\) and \ 阅读全文
posted @ 2023-09-07 09:20 ZhangZhihuiAAA 阅读(65) 评论(0) 推荐(0)

2023年9月5日

摘要: zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ go test -run NONE -bench . goos: linux goarch: amd64 pkg: zzh/aaa cpu: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz Be 阅读全文
posted @ 2023-09-05 15:36 ZhangZhihuiAAA 阅读(19) 评论(0) 推荐(0)

2023年8月30日

摘要: Linux To uninstall VS Code on Linux, you should use your package manager's uninstall or remove option. The exact command line will differ depending on 阅读全文
posted @ 2023-08-30 10:23 ZhangZhihuiAAA 阅读(92) 评论(0) 推荐(0)
上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 116 下一页