04 2022 档案
摘要:泛型函数的声明 func printlne[T any](s []T) { for _, v := range s { fmt.Println(v) } } func main() { printlne[int]([]int{45, 43, 2, 32, 32, 1, 21, 90}) printl
阅读全文
摘要:1.报错如下 Error downloading packages: 1:nodejs-full-i18n-16.13.2-3.el7.x86_64: [Errno 256] No more mirrors to try. 1:npm-8.1.2-1.16.13.2.3.el7.x86_64: [E
阅读全文
摘要:安装git软件 执行ssh-keygen -t rsa -C '自己的邮箱' $ git config --global user.name “xxx” $ git config --global user.email “xxx”
阅读全文
摘要:linux/mac 设置你的 bash 环境变量 echo "export GOPROXY=https://goproxy.io,direct" >> ~/.profile && source ~/.profile 如果你的终端是 zsh,使用以下命令 echo "export GOPROXY=ht
阅读全文
摘要:go install github.com/golang/protobuf/protoc-gen-go@latest
阅读全文
摘要:pip freeze > requirements.txt 导出命令 pip install -r requirements.txt 导入命令
阅读全文
摘要:windows+x,以管理员身份运行windowsPowerShell 输入命令set-executionpolicy remotesigned回车 输入y 回车,在进入虚拟环境就ok!
阅读全文
摘要:基础知识 1.可变类型:整形 长整型 浮点数 复数 布尔类型 字符串 元祖 2.不可变类型:列表 字典 3.GIL锁:GIL锁和cpython语言没啥关系,出现在cpython解释器中,在一个进程中开启多个线程,同一时刻只有抢到GIL的线程会进行执行 4.GIL锁的影响:使用Cpython解释器,在
阅读全文

浙公网安备 33010602011771号