使用 Python 内置的 defaultdict
,我们可以很容易的定义一个树形数据结构:
def tree(): return defaultdict(tree)
就是这样!
使用 Python 内置的 defaultdict
,我们可以很容易的定义一个树形数据结构:
def tree(): return defaultdict(tree)
就是这样!
The meaning of this error is that there are two newline characters in the file, git will automatically replace CRLF with LF, so a warning is given.
warning: CRLF will be replaced by LF in [File] . The file will have its original line endings in your working directory.
# 安装 kubespray | |
cd /opt | |
git clone https://github.com/kubernetes-sigs/kubespray.git | |
cd kubespray | |
pip3 install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com | |
# 配置集群 | |
# Copy ``inventory/sample`` as ``inventory/mycluster`` | |
cp -rfp inventory/sample inventory/mycluster |