Python Basics-Common modules

Source: Internet
Author: User

Time module : Timestamp, time string, time object, and how to convert

Random module : Randomly decimal, Integer, interval, random list elements, scatter list

OS module : An interface that interacts with the operating system, os.path the path to the action file

SYS module : The search path of the Sys.path module

shutil Module : Uncompressed module for files

XML Modules : Protocols for data exchange between different languages or programs, similar to JSON

configparser Module : Operation profile

hashlib module : Hash encryption

logging module : Log module

json&pickle Module :

The process by which we change objects (variables) from memory to storage or transfer is called serialization.

1. Persistent Save State

2. Cross-platform data interaction

JSON base data is generic, pickle python-specific

subprocess Module : Execute script, one data stream can interact with another data stream

re Module : A regular is a method of combining a number of symbols with special meanings (regular expressions) to describe a character or string

Or, in other words, a rule that is used to describe a class of things

Python Basics-Common modules

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.