Chapter Content
- Module Introduction
- Time&datetime
- Random
- Os
- Sys
- Shutil
- Json&pickle
- Shelve
- XML processing
- YAML processing
- Configarser
- Hashlib
- Subprocess
- Logging
First, Module introduction
Module, a collection of code that implements a function with a single piece of code.
Like functional programming and process-oriented programming, functional programming accomplishes a function, and other code is used to invoke it, providing reusability of code and coupling between the code. For a complex function, Ken needs multiple functions to complete (functions can be in different. py files), and the Code collection consisting of N. py files is called a module.
such as: OS is a system-related module; file is a module related to the operation of files.
The modules are divided into three types:
- Custom Modules
- Built-in standard module (also known as standard library)
- Open source Module
For the use of custom modules and open source modules, click
Second, Time&datatime
Python full stack development, DAY6-module learning