課程名稱:PCAP: Certified Associate in Python Programming 認證課程 - 簡稱:PCAP Training Course |
1. Introduction to Python
1.1 Python Overview
1.2 Basic Lexical Structure
1.2.1 Lines
1.2.2 Indent
1.2.3 Comment
1.3 Installing Python
2. Variables, Literals and Operators
2.1 Identifiers and Keywords
2.2 Literals
2.2.1 String Literals
2.2.2 Integer Literals
2.2.3 Floating-Point Literals
2.2.4 Boolean Literals
2.2.5 Other Literals
2.3 Characteristics of Python Variable
2.4 Basic Operators
2.4.1 Arithmetic Operators
2.4.2 Comparison Operators
2.4.3 Logical / Boolean Operators
2.4.4 Bitwise Operators
2.4.5 Assignment Operators
2.4.6 Precedence Order
3. Flow Control Statements
3.1 if statement
3.2 for statement
3.3 while statement
3.4 Additional Statement For Flow Control
3.4.1 break statement
3.4.2 continue statement
3.4.3 pass Statement
3.4.4 match… case… Statement (參考章節)
3.4.5 if … else … Conditional Expression
4. Function
4.1 Overview
4.2 Defining a Basic Function
4.3 Function Parameter(s)
4.3.1 Function Having Fixed Number of Parameters
4.3.2 Positional and Keyword Argument
4.3.3 Default Parameter Value
4.3.4 Arbitrary Arguments
4.4 Returning Value(s) From Function
4.4.1 Using return
4.4.2 Using yield
4.5 Recursive Function
4.6 Scope of Variables
4.6.1 Defining Variables Outside of Functions
4.6.2 Defining Variables Within a Function
4.6.3 Assigning Value to an existing Global Variable Within a Function
4.7 About Function Object
4.8 Nested Function
4.9 Function Decorator (參考章節)
4.10 Python Builtin Functions
4.10.1 print()
4.10.2 input()
4.10.3 int()
4.10.4 float()
4.10.5 bool()
4.10.6 str()
4.11 Functions from module platform
4.12 Functions from math
4.13 Functions from random
4.14 About Functions Annotations and Docstrings (參考資料)
5. Python Container Types
5.1 Overview
5.2 List
5.2.1 Creating a List
5.2.2 Basic Ways to Read Element from a List
5.2.3 Modifying Elements in a List
5.2.4 Built-in Functions for Containers
5.2.5 Other Methods in class List
5.2.6 Slice Notation
5.3 Tuple
5.3.1 Creating a Tuple
5.3.2 Methods in class Tuple
5.3.3 Benefits of using Tuple
5.4 Set
5.4.1 Creating a Set
5.4.2 Methods in class Set
5.5 Dictionary
5.5.1 Creating a Dictionary
5.5.2 Add / Change / Retrieving Value in a Dictionary
5.5.3 Using Built-in Functions
5.5.4 Basic Methods in class dict
5.5.5 keys(), values() and items()
5.6 Nested List
5.7 Packing / Unpacking and Lambda
5.7.1 UnPacking
5.7.2 Packing
5.7.3 Lambda
5.8 filter() and map()
5.8.1 filter()
5.8.2 map()
6. String
6.1 Overiew
6.2 Iterating, Slicing and using with Bulit-in Functions
6.3 Concatenation
6.4 Comparison
6.5 String Methods
6.5.1 isXXX()
6.5.2 Case Conversion and Stripping
6.5.3 Searching
6.5.4 replace()
6.5.5 format()
6.5.6 Creating a List from String
7. Classes
7.1 Overview
7.2 Class Definition
7.3 Class and Instance Variables
7.3.1 Class Variables
7.3.2 Instance Variables
7.4 Instance Methods
7.5 The Constructor
7.6 Characteristics About Class / Instance Attributes
7.6.1 __dict__ and vars()
7.6.2 dir() and hasattr()
7.6.3 Adding / Removing Attributes Dynamically
7.6.4 Private Attribute
7.7 Characteristics of Other Class Components
7.7.1 Special Methods
7.7.2 Other Types of Methods (參考章節)
7.7.3 Properties (參考章節)
7.8 Inheritence
7.8.1 Overview
7.8.2 Creating a SubClass
7.8.3 Checking for Inheritance Relationship
7.8.4 Adding Variables / Methods in a SubClass
7.8.5 Overriding Methods and super()
7.8.6 About Constructors in Inheritance
7.8.7 Name Mangling
7.8.8 Multiple Inheritance
7.8.9 super() in Multiple Inheritance
8. Errors, Exceptions and Exception Handling
8.1 About Errors and Exceptions
8.1.1 Syntax Errors
8.1.2 Exceptions
8.2 Problems about Avoiding Exceptions
8.3 Exception Handling
8.3.1 Basic try statement
8.3.2 Multiple except Clauses
8.3.3 The else Clause and the finally Clause
8.4 Exception Ocurred in Function / Method
8.5 Details About an Exception
8.6 Custom Exception
8.6.1 Creating a Custom Exception Class
8.6.2 Rasing Custom Exception
8.6.3 Handling Custom Exception
8.6.4 An Example for Using Custom Exception
8.7 Chaining Exception
8.8 AssertionError
9. Input / Ouput
9.1 Overview
9.2 Standard Streams
9.2.1 Standard Input (stdin)
9.2.2 Standard Output (stdout)
9.2.3 Standard Error (stderr)
9.3 Streams for Text File
9.3.1 Opening a File Stream
9.3.2 Reading Text from a File
9.3.3 Writing Text to a File
9.4 Closing a File Stream
9.5 with statement (參考章節)
10. Python Modules and Packages
10.1 Overview
10.2 Creating a Simple Module
10.3 Module Attributes
10.4 More Ways for Importing a Module / Attribute
10.4.1 Importing the Module
10.4.2 Importing All Attributes in a Module
10.4.3 Importing Specific Attribute(s) from a Module
10.5 Statements entered Directly in a Module
10.6 __pycache__
10.7 Python Package
10.7.1 Basic way to Import a Package
10.7.2 Importng Pre-defined Modules in a Package
10.7.3 Importng Package in Zip format
10.7.4 Relative Import (參考章節)
|