- 博客(11)
- 收藏
- 关注
原创 Install kubernetes cluster
1.配置源以安装kubeadm,kubectl,kubelet: CENTOS版本 cat < /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=0 repo_gpgcheck=0 gpgkey=http://mirrors.aliyun.
2021-04-06 15:27:13 92
原创 Install Helm in K8S
1.(下面的安装也可以使用脚本)没有尝试过 curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh chmod 700 get_helm.sh ./get_helm.sh 1.安装helm,下载helm二进制文件,并解压 https://github.com/helm/helm/releases 2.把helm和tiller二进制文件放到/usr/local/bin/helm 3.命令行补齐:
2021-04-06 14:28:56 96
原创 dd make start up usb
1.插入u盘 2.fdisk -l找到u盘的盘符 3.umount /dev/sdb* 4.mkfs.vfat /dev/sdb -I 5.使用dd命令写iso进入到u盘 //if=input file,应该要填绝对地址,不能填~/。。。,也可以cd到当前目录直接写名字 //of=output file dd if=/home/zhouya/Downloads/ubuntu-20.04.2.0-desktop-amd64.iso of=/dev/sda status=progress &&
2021-04-02 16:50:05 78
原创 thunderbird mail config
POP pop.qiye.163.com 110 995 SMTP smtp.qiye.163.com 25 465 IMAP imap.qiye.163.com 143 993
2021-04-02 16:48:39 107
原创 python deque
Deque Operation Deque Contents Return Value d.isEmpty() [] True d.addRear(4) [4] d.addRear(‘dog’) [‘dog’,4,] d.addFront(‘cat’) [‘dog’,4,‘cat’] d.addFront(True) [‘dog’,4,‘cat’,True] d.size() [‘dog’,4,‘cat’,True] 4 d.isEmpty() [‘dog’,...
2021-04-02 16:44:42 103
原创 python queue
Table 1: Example Queue Operations Queue Operation Queue Contents Return Value q.isEmpty() [] True q.enqueue(4) [4] q.enqueue(‘dog’) [‘dog’,4] q.enqueue(True) [True,‘dog’,4] q.size() [True,‘dog’,4] 3 q.isEm...
2021-04-02 16:38:22 45
原创 python Stack
Table 1: Sample Stack Operations Stack Operation Stack Contents Return Value s.isEmpty() [] True s.push(4) [4] s.push(‘dog’) [4,‘dog’] s.peek() [4,‘dog’] ‘dog’ s.push(True) [4,‘dog’,True] s.size() [4,‘dog’...
2021-04-02 16:31:28 50
原创 effective python(59 points list)
1.确认自己所使用的python版本 python --version python3 --version import sys print(sys.version_info) print(sys.version) 2.遵循pep8风格指南 3.了解bytes、str与unicode的区别 def to_str(bytes_or_str): if isinstance(bytes_or_str, bytes): value
2021-04-02 16:22:04 110 1
原创 python sort algorithm
十种常见排序算法可以分为两大类: 非线性时间比较类排序:通过比较来决定元素间的相对次序,由于其时间复杂度不能突破O(nlogn),因此称为非线性时间比较类排序。 线性时间非比较类排序:不通过比较来决定元素间的相对次序,它可以突破基于比较排序的时间下界,以线性时间运行,因此称为线性时间非比较类排序。 相关概念 稳定:如果a原本在b前面,而a=b,排序之后a仍然在b的前面。 不稳定:如果a原本在b的前面,而a=b,排序之后 a 可能会出现在 b 的后面。 时间复杂度:对排序数据的总的操作次数。反映当n变化时,操
2021-04-02 16:20:00 82
原创 how to calcuate the time with timeip package in python
t1 = Timer(“test1()”, “from main import test1”) print("concat ",t1.timeit(number=1000), “milliseconds”) t2 = Timer(“test2()”, “from main import test2”) print("append ",t2.timeit(number=1000), “milliseconds”) t3 = Timer(“test3()”, “from main import test3”)
2021-04-02 16:19:06 52
转载 list dict time complex
list dict time complex https://wiki.python.org/moin/TimeComplexity
2021-04-02 16:16:23 63
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人