Error in user YAML: (<unknown>): could not find expected ':' while scanning a simple key at line 3 column 1
---
- oeasy Python 0129
- 这是 oeasy 系统化 Python 教程,从基础一步步讲,扎实、完整、不跳步。愿意花时间学,就能真正学会。
本教程同步发布在:
个人网站: `https://oeasy.org`
蓝桥云课: `https://www.lanqiao.cn/courses/3584`
GitHub: `https://github.com/overmind1980/oeasy-python-tutorial`
Gitee: `https://gitee.com/overmind1980/oeasypython`
---
| 运算类型 |
基础运算符 |
增强赋值运算符 |
对应方法名 |
| 交集 |
& |
&= |
intersection |
| 并集 |
| |
|= |
union |
| 差集 |
- |
-= |
difference |
| 对称差集 |
^ |
^= |
symmetric_difference |




- sub 下面的
- subway 地下铁
- subject 使屈从
- submarine 潜水艇
- sub 下属的
- subcontractor 分包商
- subordinate 下属
- subcontinent 次大陆
- subset
s1 = {1, 2, 3}
s2 = {1, 2, 3, 4}


s1 = {1}
s2 = {0, 1}
s1 < s2
s2 < s1
s1 < s1

s1 = {1}
s2 = {0, 1}
s1 <= s2
s2 <= s1
s1 <= s1


s1 = {1}
s2 = {0, 1}
s1.issuperset(s2)
s2.issuperset(s1)
s1.issuperset(s1)


- sup
- 起源于uper-
- 与above、over、hyper、up同源
- 与sub-相对
| 单词 |
中文释义 |
| support |
支持;支撑;拥护 |
| superhero |
超级英雄 |
| supersonic |
超音速的 |
| superior |
上级的;优秀的;优越的 |
| supervise |
监督;管理;指导 |
| survive |
生存;存活;挺过 |
s1 = {1}
s2 = {0, 1}
s1 > s2
s2 > s1
s1 > s1


| 英文 |
中文释义 |
| set |
集合 |
| discard |
排除 |
| frozen |
冻结(不可变集合) |
| intersection |
交集 |
| union |
并集 |
| superset |
超集 |
| subset |
子集 |
| difference |
差集 |
| symmetric |
对称 |
| disjoint |
不相交 |
| 英文单词 |
中文释义 |
| add |
添加 |
| clear |
清空 |
| remove |
指定删除 |
| discard |
丢弃(删除) |
| pop |
弹出 |
| 运算类型 |
基础运算符 |
增强赋值运算符 |
对应方法名 |
| 交集 |
& |
&= |
intersection |
| 并集 |
| |
|= |
union |
| 差集 |
- |
-= |
difference |
| 对称差集 |
^ |
^= |
symmetric_difference |
| 运算类型 |
英文描述 |
运算符 |
| 是否有交集 |
isdisjoint |
无 |
| 是否是子集 |
issubset |
<= |
| 是否是超集 |
issuperset |
>= |

- 遇到这么个问题
- 什么是dict呢?🤔
- 下次再说 👋
- 本文来自 oeasy Python 系统教程。
- 想完整、扎实学 Python,
- 搜索 oeasy 即可。