1. 值类型
1.int:
golang中int即整形,是指整数,其中包括正数和负数,是没有小数部分或小数点的数字,整型可以是十进制、八进制或十六进制,但默认为十进制,其取值范围是负2147483648到2147483647之间...
Liemer_Lius
1年前 (2023-03-07) 203℃
1喜欢
参考:https://www.cnblogs.com/mayanan/p/15414957.html
package main
import (
"fmt"
"os"
)
func main() ...
Liemer_Lius
1年前 (2023-03-01) 178℃
1喜欢
package main
import (
"fmt"
"math"
)
type Point struct{ X, Y float64 }
type Path []Point
func (p Point)...
Liemer_Lius
1年前 (2023-02-28) 163℃
0喜欢
1、位运算符
参考:https://baike.baidu.com/item/%E4%BD%8D%E8%BF%90%E7%AE%97%E7%AC%A6/2786163?fr=aladdin
二进制转换:
2: 0010
7: 011...
Liemer_Lius
1年前 (2023-02-08) 199℃
2喜欢
http://www.huangsiyong.cn/wordpressruhefangzhilajipinglun.html
转载请注明:liutianfeng.com » wordpress如何防止垃圾评论...
Liemer_Lius
1年前 (2023-02-02) 204℃
1喜欢
使用国内镜像,加速下载
安装 autoconf(无configure脚本时):
# apk add --no-cache -U autoconf
安装 C 编译器:
# apk add --no-cache -U gcc
# ap...
Liemer_Lius
1年前 (2023-01-12) 398℃
1喜欢
http://t.zoukankan.com/zhangmingcheng-p-15627316.html
转载请注明:liutianfeng.com » Linux ipset用法
...
Liemer_Lius
1年前 (2023-01-05) 378℃
2喜欢
编码:两个方法
# echo '你好中国' |tr -d '\n' |xxd -plain |sed 's/\(..\)/%\1/g'
# echo '你好中国' |tr -d '\n' |od -An -tx1 |tr ' ' %
%e4...
Liemer_Lius
1年前 (2022-11-25) 359℃
2喜欢
Dump:
jmap -dump:format=b,file=/data/heapdump.hprof PID_OF_JAVA_PROCESS
GC查看:
# jstat -gcutil 6085 1000 1000
S0 S1...
Liemer_Lius
2年前 (2022-10-20) 253℃
3喜欢
安装
# pip3 install shyaml
帮助
# shyaml --help
Parses and output chosen subpart or values from YAML input.
It reads YAM...
Liemer_Lius
2年前 (2022-10-13) 562℃
2喜欢