python对函数库引用的第一种方式
格式是: import<库名>
例如:
importturtle
如果需要用到函数库中函数,需要使用: <库名>.<函数名>
importturtle turtle.fd(100)
相关推荐:《Python基础教程》
python对函数库引用的第二种方式
格式是: from<库名>import<函数名>
from<库名>import*
调用函数不需要<库名>,直接使用<函数名>
fromturtleimport* fd(100)
上一篇
python如何处理掉12306的验证码
下一篇
python中Pylint的信息类型
四叶天代理IP,专业代理IP厂家,主营动态、静态、长效、短效、住宅IP。