笔记
文章平均质量分 95
Alpha_Cycle
这个作者很懒,什么都没留下…
展开
-
Python notes 0014: Classes 3
Contents123123转载 2021-05-15 11:08:26 · 126 阅读 · 0 评论 -
Python notes 0013: Classes 2
Contents属性方法(功能)self魔术方法属性方法(功能)self魔术方法转载 2021-05-13 17:51:25 · 118 阅读 · 0 评论 -
Python notes 0012: Classes 1
Contents1 List Comprehensions2 Iterators3 Generators3.1 Generator Expressions4 Classes1 List ComprehensionsList comprehensions provide a concise way to create lists. Common applications are to make new lists where each element is the result of some opera转载 2021-05-11 17:51:30 · 166 阅读 · 0 评论 -
Python notes 0012: Function 3
Contents1 Lambda Expressions2 Decorators2.1 Functions are objects2.2 Decorators2.3 Syntactic sugar2.4 Arguments3 PEP 84 Exercise1 Lambda ExpressionsSmall anonymous functions can be created with the lambda keyword. This function returns the sum of its two转载 2021-05-08 17:19:28 · 116 阅读 · 0 评论 -
Python notes 0010: Function 2
Contents1 The `return` statement2 Documentation Strings3 Scope of Variables4 Namespaces in Python4.1 The Built-In Namespace4.2 The Global Namespace4.3 The Local and Enclosing Namespaces5 Recursion5.1 What is recursion?5.2 Python Recursive Function5.3 Advan转载 2021-05-06 16:16:06 · 136 阅读 · 0 评论 -
Python notes 0009: Define Function 1
ContentsDD转载 2021-04-29 12:30:00 · 194 阅读 · 0 评论 -
Python notes 0008: Data type
Contents1 Tuples and Sequences2 Dictionaries3 Sets4 Exercise1 Tuples and SequencesWe saw that lists and strings have many common properties, such as indexing and slicing operations. They are two examples of sequence data types (see Sequence Types — list,转载 2021-04-27 13:16:08 · 105 阅读 · 0 评论 -
Python notes 0007: Control Flow Tools 2 and List
Contents1 Control flow tools1.1 `for` Statements1.2 The `range()` Function2 List1 Control flow tools1.1 for StatementsThe for statement in Python differs a bit from what you may be used to in C or Pascal. Rather than always iterating over an arithmetic转载 2021-04-24 15:35:20 · 146 阅读 · 0 评论 -
Python notes 0006: Control Flow Tools 1
Contents1 Basic knowledge1.2 Concept22.12.2 More Control Flow Tools2.2.1 `if` Statements2.2.2 `break` and `continue` Statements, and `else` Clauses on Loops1 Basic knowledge1.2 Concept22.1①Open cmd.exe and enter python to enter interactive mode.②we c转载 2021-04-21 23:53:45 · 167 阅读 · 0 评论 -
Python notes 0005: Operator
ContentsHH转载 2021-04-20 15:14:36 · 173 阅读 · 0 评论