python3学习手册★第3章、基础语法 ★保留字(关键字) True False None as nonlocal and exec not assert finally or break for pass class from print con�nue global raise def if return del import try elif in while else is with except #a和b的交集 a ^ b #a和b中不同时存在的元素 ★判断变量类型 type(x) #返回x的类型,如 <class 'int'> isinstance(x, int) #返回True或False type()不会 认为子类是父类的一种类型 isinstance(x,int)会认为子类是父类的一种类型 print(f"这是{name}") 结果: 这是cof-lee ★第8章、面向对象 类是由 数据结构 及对数据进行的操作方法 组成的 ①创建类 class 类名称: "类的帮助信息,描述" 类的内容 class 类名称(基类1, 基类2): #派生类 类的内容 ②类的方法 类的方法即类里的函数,python的类方法必须有一个额外的第一个参0 码力 | 213 页 | 3.53 MB | 1 年前3
postgresql操作手册#切换到目标数据库 db_test=# create table tablexx (name VARCHAR(32), age INT, class INT); #创建名 为tablexx的表,3个字段 db_test=# \d tablexx; character varying(32) | | | age | integer | | | class | integer | | | db_test=# insert into tablexx values ('cof-lee' insert into tablexx (name, age, class) values ('Tom', 23, 1512); #插入 一条数据 db_test=# SELECT * FROM "public"."tablexx" LIMIT 1000; #列出表的所有数据 name | age | class ---------+-----+------- cof-lee0 码力 | 17 页 | 445.84 KB | 1 年前3
Predictably IrrationalMaintenance, E-mail Experiment: Class paper deadlines Observations: o “We found that the students in the class with the three firm deadlines got the best grade; the class in which I set no deadlines at at all (except for the final deadline) had the worst grades; and the class allowed to choose their own three deadlines (but with penalties for failing to meet them) finished in the middle.” o “What’s0 码力 | 3 页 | 234.46 KB | 5 月前3
k8s操作手册 2.3myweb-ingress namespace: default annota�ons: #资源注解,仅起提示作用 kubernetes.io/ingress.class: "nginx" spec: rules: #以下是各转发规则,根据匹配的hostName去转发 - host: "web.xxx.com" h�p: myweb-ingress namespace: default annota�ons: #资源注解,仅起提示作用 kubernetes.io/ingress.class: "nginx" spec: rules: #以下是各转发规则,根据匹配的hostName去转发 - host: "web.xxx.com" h�p: myweb-ingress-tls namespace: default annota�ons: #资源注解,仅起提示作用 kubernetes.io/ingress.class: "nginx" spec: tls: - hosts: - "web.xxx.com" secretName: web-inress-secret1 #使用指定的secret资源0 码力 | 126 页 | 4.33 MB | 1 年前3
Government Excerptplan has five points that could have been plucked from any campaign platform: 1. A “world-class” education system from preschool through college; 2. A “prosperous economy”; 3. Making Washington0 码力 | 3 页 | 414.99 KB | 5 月前3
The DevOps Handbooklarger batch sizes compound effort needed to identify causes ii. Unit tests – test a single method, class, or function in isolation to ensure operates as designed iii. Acceptance tests – test application0 码力 | 8 页 | 23.08 KB | 5 月前3
A Seat at the Table - IT Leadership in the Age of Agility Clearly, we do not mean adherence to specification, but do we mean spare-no-expense-best-in- class? Probably not that, either. We are constantly making quality decisions, especially in a Continuous0 码力 | 7 页 | 387.48 KB | 5 月前3
共 7 条
- 1













