08 2023 档案
摘要:# 重要知识点 ## super() 函数 —— 调用父类方法 [8.7 调用父类方法 — python3-cookbook 3.0.0 文档](https://python3-cookbook.readthedocs.io/zh_CN/latest/c08/p07_calling_method_o
阅读全文
摘要:# 推导式 ## 字典推导式 1. 想根据某个可迭代对象的元素来创建字典时,可以使用字典推导式。 2. 字典推导式使用大括号 `{}` 来包围表达式,并使用键值对的形式来定义字典的元素。 ```python fruits = ['apple', 'banana', 'cherry'] fruit_l
阅读全文

浙公网安备 33010602011771号