
math — Mathematical functions — Python 3.13.2 documentation
4 天之前 · math — Mathematical functions¶ This module provides access to the mathematical functions defined by the C standard. These functions cannot be used with complex numbers; use the functions of the same name from the cmath module …
Built-in Functions — Python 3.13.2 documentation
3 天之前 · Built-in Functions¶ The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order.
Numeric and Mathematical Modules — Python 3.13.2 …
4 天之前 · The modules described in this chapter provide numeric and math-related functions and data types. The numbers module defines an abstract hierarchy of numeric types. The math and cmath modules contain various mathematical functions for floating-point and complex numbers.
The Python Standard Library — Python 3.13.2 documentation
3 天之前 · The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming.
operator — Standard operators as functions - Python
4 天之前 · The operator module exports a set of efficient functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y . Many function names are those used for special methods, without the double underscores.
cmath — Mathematical functions for complex numbers - Python
3 天之前 · This module provides access to mathematical functions for complex numbers. The functions in this module accept integers, floating-point numbers or complex numbers as arguments.
9.2. math — Mathematical functions — Python 2.7.18 문서
2018年2月7日 · math — Mathematical functions¶ This module is always available. It provides access to the mathematical functions defined by the C standard. These functions cannot be used with complex numbers; use the functions of the same name from the cmath module if you require support for complex numbers. The distinction between functions which support ...
statistics — Mathematical statistics functions — Python 3.13.2 ...
4 天之前 · This module provides functions for calculating mathematical statistics of numeric (Real-valued) data. The module is not intended to be a competitor to third-party libraries such as NumPy, SciPy, or proprietary full-featured statistics packages aimed at professional statisticians such as Minitab, SAS and Matlab. It is aimed at the level of ...
6. Expressions — Python 3.13.2 documentation
3 天之前 · The primary must evaluate to a callable object (user-defined functions, built-in functions, methods of built-in objects, class objects, methods of class instances, and all objects having a __call__() method are callable). All argument expressions are …
random — Generate pseudo-random numbers — Python 3.13.2 …
3 天之前 · Almost all module functions depend on the basic function random(), which generates a random float uniformly in the half-open range 0.0 <= X < 1.0. Python uses the Mersenne Twister as the core generator.