Python study notes (function library reference)

The way Python refers to library functions The
first way is added to the program header:

import<库名>

For example: import math

>>>import math
>>>math.sqrt(a)

The second way of quoting:

from <库名> import <函数名>
from <库名> import *

E.g:

>>>from math import *
>>>sqrt(a)
Published 48 original articles · Like 25 · Visit 2453

Guess you like

Origin blog.csdn.net/qq_43628959/article/details/96499088