09 2021 档案
摘要:安装&配置(Images)1)Ubuntu安装 apt-get install docker.io -y2) 更换为国内源:vim /etc/docker/daemon.json{"registry-mirrors": ["https://kfwkfulq.mirror.aliyuncs.com",
阅读全文
摘要:一、使用rufus+GPT+DD方式写入U盘 二、更换国内源 1、删除企业源 mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak 2、下载秘钥 wget http
阅读全文
摘要:【文件基本操作】 data = open("yesterday2",encoding="utf-8").read() #直接打开文件读取文件内容 f = open("yesterday",encoding="utf-8") #f叫文件句柄,文件的内存对象,包含文件名、大小、内存的起始位置等 data
阅读全文
摘要:【String字符串基础用法】 字符串常用方法 names = "my name is Lukas Huang." 1、find 查找字符的位置,找不到返回-1,跟index类似,index找不到抛出异常 names.find("name") #返回查到的首字符的位置 2、count方法,计数 na
阅读全文
摘要:【String基础语法】 set #设置值 set animal "dog" get #获取值 get animal mset #设置多个值 mset animal1 "dog" animal2 "cat" mget #获取多个值 mget animal1 animal2 append #追加字符串
阅读全文