09 2021 档案

摘要:Ubuntu 从 17.10 开始,已放弃在 /etc/network/interfaces 里固定IP的配置,而是改成 netplan 方式,Ubuntu 20.04.3配置文件是/etc/netplan/00-installer-config.yaml 配置文件 # This is the ne 阅读全文
posted @ 2021-09-28 21:20 北兢王 阅读(769) 评论(0) 推荐(0) 编辑
摘要:先备份源 cp -a /etc/apt/sources.list /etc/apt/sources.list.bak 更换源 从网上下载 wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu20_sour 阅读全文
posted @ 2021-09-28 21:11 北兢王 阅读(772) 评论(0) 推荐(0) 编辑
摘要:切片 语法 字符串[开始位置下标:结束位置下标:步长] 不包含结束位置下标对应的数据, 正负整数均可 步长是选取间隔,正负整数均可,默认步长为1 示例 str = "asdfgh" print(str[1:3:1]) #sd print(str[1:5:2]) #sf print(str[:5]) 阅读全文
posted @ 2021-09-06 00:12 北兢王 阅读(60) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩