9. Classes — Python 3.14.3 documentation
2026年3月25日 · Class instances can also have methods (defined by its class) for modifying its state. Compared with other programming languages, Python’s class mechanism adds classes with a …
Built-in Types — Python 3.14.3 documentation
2 日前 · The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exceptions. Some …
The Python Tutorial — Python 3.14.3 documentation
2026年3月25日 · The Python Tutorial ¶ Tip This tutorial is designed for programmers that are new to the Python language, not beginners who are new to programming. Python is an easy to learn, powerful …
5. Data Structures — Python 3.14.3 documentation
2026年3月25日 · 5. Data Structures ¶ This chapter describes some things you’ve learned about already in more detail, and adds some new things as well. 5.1. More on Lists ¶ The list data type has some …
Built-in Functions — Python 3.14.3 documentation
2026年3月25日 · Note that classes are callable (calling a class returns a new instance); instances are callable if their class has a __call__() method. Added in version 3.2: This function was first removed in …
3. Data model — Python 3.14.3 documentation
2026年3月24日 · 3. Data model ¶ 3.1. Objects, values and types ¶ Objects are Python’s abstraction for data. All data in a Python program is represented by objects or by relations between objects. Even …
Dynamic type creation and names for built-in types - Python
3 日前 · Dynamic Type Creation ¶ types.new_class(name, bases=(), kwds=None, exec_body=None) ¶ Creates a class object dynamically using the appropriate metaclass. The first three arguments are the …
datetime — Basic date and time types — Python 3.14.3 ...
class datetime.timezone A class that implements the tzinfo abstract base class as a fixed offset from the UTC. Added in version 3.2. Objects of these types are immutable. Subclass relationships: …
dataclasses — Data Classes — Python 3.14.3 documentation
2 日前 · That is, two instances of class D that do not specify a value for x when creating a class instance will share the same copy of x. Because dataclasses just use normal Python class creation they also …
subprocess — Subprocess management — Python 3.14.3 ...
2026年3月25日 · Changed in version 3.3: When universal_newlines is True, the class uses the encoding locale.getpreferredencoding(False) instead of locale.getpreferredencoding(). See the …