Home>Article>Backend Development> What is the statement to import the Python standard mathematical function module?

What is the statement to import the Python standard mathematical function module?

王林
王林 Original
2020-06-15 10:10:56 4555browse

What is the statement to import the Python standard mathematical function module?

The statement to import the standard mathematical function module is:

import math

Note: To use a function under a certain module, you must first introduce this module, otherwise it cannot be used normally.

The role of the import statement:

The import statement is used to import modules, and it can appear anywhere in the program.

The syntax of the import statement:

Use the import statement to import the module. The syntax of the import statement is as follows:

import module 关键字 模块名

Recommended tutorial:python tutorial

The above is the detailed content of What is the statement to import the Python standard mathematical function module?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn