---
title: "Discussion on \"Python 包导入与层级访问核心知识点总结\" | Hashnode"
description: "Discussion on \"Python 包导入与层级访问核心知识点总结\". Python 包导入与层级访问核心知识点总结\n一、核心基础：__init__.py 的核心作用\n1. 定义与本质\n__init__.py 是标记普通文件夹为 Python 包的核心文件。\n备注：Python 3.3+ 支持无该文件的隐式命名空间包，但为了兼容性和功能完整性，建议仍添加。\n2. 四大核心功能\n\n\n\n功能分类\n具体说明\n\n\n\n标记包身份\n无 __init__.py 的文件夹仅为普通目录"
url: "https://hashnode.com/posts/python/6a23a5168f8be6022c798e3d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python 包导入与层级访问核心知识点总结](https://tianchuangya.cc/python?utm_source=hashnode&utm_medium=feed)

Python 包导入与层级访问核心知识点总结 一、核心基础：\_\_init\_\_.py 的核心作用 1. 定义与本质 \_\_init\_\_.py 是标记普通文件夹为 Python 包的核心文件。 备注：Python 3.3+ 支持无该文件的隐式命名空间包，但为了兼容性和功能完整性，建议仍添加。 2. 四大核心功能 功能分类 具体说明 标记包身份 无 \_\_init\_\_.py 的文件夹仅为普通目录

Jun 6 · 8 min read · tianchuangya.cc  
Read the article

## Written by

[tianchuangya](https://hashnode.com/@shitianchuangya)

@shitianchuangya · China

  
[View profile](https://hashnode.com/@shitianchuangya)

确定性是机器的底层逻辑，而你是我在这个绝对理性世界里，唯一的那个浪漫bug

确定性世界里，一个被允许的异常

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
