会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lxd670
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
16
下一页
2024年9月25日
迭代器
摘要: 为什么学习迭代器 如何for循环自定义实例对象 class Student: def __init__(self): self.students = [] def add_student(self, name, age): self.students.append({ "name": name, "
阅读全文
posted @ 2024-09-25 09:53 lxd670
阅读(46)
评论(0)
推荐(0)
2024年1月17日
查询字符串标签
摘要: 1.node表格 ip | labels + 1.1.1.1 | x_build rv_build 1.1.1.2 | x_build rv_build 1.1.1.3 | x_build rv_build 1.1.1.4 | x_build aa_rv_build 1.1.1.5 | x_buil
阅读全文
posted @ 2024-01-17 09:59 lxd670
阅读(51)
评论(0)
推荐(0)
2024年1月9日
layui
摘要: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0,
阅读全文
posted @ 2024-01-09 01:05 lxd670
阅读(97)
评论(0)
推荐(0)
2024年1月7日
__doc__
摘要: __doc__用法 def fun1(): """This is a fun1""" pass class Debug: """This is a class for debugging""" def __init__(self): """ This funtion only has one pro
阅读全文
posted @ 2024-01-07 22:56 lxd670
阅读(249)
评论(0)
推荐(0)
__getattr__和__getattribute__区别
摘要: 1.__getattr__ 和 __getattribute__区别 1.__getattr__ 在访问对象的属性而属性不存在时触发。它只会在属性不存在时调用,而对已存在的属性访问不会触发。 2.__getattribute__ 在访问对象的任何属性时都会触发。无论属性是否存在,每次属性访问都会经过
阅读全文
posted @ 2024-01-07 02:50 lxd670
阅读(81)
评论(0)
推荐(0)
docker网络
摘要: docker网络驱动 1.bridge(桥接网络驱动):这是Docker默认使用的网络驱动,它通过docker0网桥连接到宿主机,并为容器分配IP地址,使得容器可以互相通信和与宿主机通信。 2.host(主机网络驱动):使用主机网络驱动时,容器与宿主机共享网络命名空间,容器可以直接使用宿主机的网络接
阅读全文
posted @ 2024-01-07 01:47 lxd670
阅读(287)
评论(0)
推荐(0)
go
摘要: 1.GO ENV 查看env值 go env GO111MODULE="on" GOARCH="arm64" ... 设置env Go 1.13 及以上(推荐) # 开启GO mod 和设置go模块代码 $ go env -w GO111MODULE=on $ go env -w GOPROXY=h
阅读全文
posted @ 2024-01-07 01:46 lxd670
阅读(61)
评论(0)
推荐(0)
__slots__
摘要: 1.python类 类本质是一个字典(本质使用空间换时间) class A: def __init__(self, x) -> None: self.x = x a = A(1) print(a.x) # 1 # 添加y属性 a.y = 2 print(a.y) # 2 print(a.__dict
阅读全文
posted @ 2024-01-07 01:34 lxd670
阅读(57)
评论(0)
推荐(0)
2023年10月15日
traceback模块
摘要: 终端报错输出 def f1(x, y): return f2(x, y) def f2(x, y): return x / y def f3(): res = f1(2, 0) print(res) if __name__ == '__main__': f3() python3 error_test
阅读全文
posted @ 2023-10-15 22:10 lxd670
阅读(223)
评论(0)
推荐(0)
2023年9月23日
数据卷
摘要: 1.什么是数据卷 容器卷就是将目录或者文件,存在一个或多个容器中,由docker挂载到容器 目的:数据的持久化,完全独立于容器的生命周期,因此docker不会在删除容器时删除其挂载的数据卷 特点: 数据卷可以在容器之间共享数据 卷中更改可以直接生效 数据卷更改不会包含在镜像的更新中 数据卷的生命周期
阅读全文
posted @ 2023-09-23 15:21 lxd670
阅读(196)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
16
下一页
公告