百度DNS
IPv4
-
180.76.76.76
IPv6
-
2400:da00::6666
阿里DNS
IPv4
-
223.5.5.5
-
223.6.6.6
IPv6
-
2400:3200::1
-
2400:3200:baba::1
DoH/DoT地址
-
dns.alidns.com
180.76.76.76
2400:da00::6666
223.5.5.5
223.6.6.6
2400:3200::1
2400:3200:baba::1
dns.alidns.com
有时候总是忍不住思考
我是不是把自己隐私保护的太好
以至于在这个时代
一个最好也是最坏的时代
感到那么的不适应
...
首先使用工具 2to3 转换
2to3 目录名 -w -n
https://stackoverflow.com/questions/55559825/how-to-fix-print-double-parentheses-after-2to3-conversion
问题:
如果在python2项目里使用了python3的写法,比如在 python2 里的 print …
环境: macOs big Sur 11.2.2
pyenv: 1.2.23
┌─[jianglin]─[~/repo/golang/src/alarm](master)
└──╼ pyenv install 3.6.7
python-build: use openssl@1.1 …
package main
import (
"encoding/json"
"reflect"
"testing"
)
type A struct {
A string `json:"a"`
B string `json:"b"`
C int `json:"c"`
D int `json:"d"`
E []string `json:"e"`
F []int `json:"f"`
}
var a = &A{
"string",
"test",
15,
1024,
[]string{"vvv", "ssss", "44444"},
[]int{100, 4012},
}
func …
安装
└──╼ brew install rustup
└──╼ rustup-init
......
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1
配置 rust 目录
└──╼ mkdir $HOME/repo/rust
└──╼ mv $HOME/.rustup $HOME/repo/rust/rustup
└──╼ mv $HOME/.cargo $HOME/repo/rust/cargo
写入 .bashrc 文件
export …
package main
import "testing"
type InterfaceA interface {
AA()
}
type InterfaceB interface {
BB()
}
type A struct {
v int
}
func (a *A) AA() {
a.v += 1
}
func BenchmarkTypeSwitch(b *testing.B) {
var a = new(A)
switchFunc := func(v interface{}) {
switch v.(type) {
case InterfaceA:
v.(InterfaceA).AA()
case InterfaceB:
v.(InterfaceB …
关于PV的创建参考 《K8S笔记之持久化存储》
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: docker-claim …
virsh shutdown …