📜  python 从同一级别导入文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:06.482000             🧑  作者: Mango

代码示例1
#Example of tree:

#         main.py
#         package/
#                asset1.py
#                asset2.py
#                asset3.py

#If you want to import asset2 into asset1 do this in asset1.py :
import .asset2