将
import module_name
替换为
from module_name import
, 并在引用
module_name
中的名称时移除限定符。
使用
from module_name import
确保更好地控制
module_name
的哪些项目可以访问。