学习笔记(01):Python 面试100讲(基于Python3.x)-导入Python模块

立即学习:https://edu.csdn.net/course/play/26755/340102?utm_source=blogtoedu

导入

1. from ...(model) import ...,...(function)(* 所有函数)

2....(model). ...(函数)  使用时每次都要写

3. 别名

import A as a

from A import B as b

发布了16 篇原创文章 · 获赞 6 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_39938635/article/details/104273976
今日推荐