Importing module from parent folder in child module - Python 3

后端 未结 0 949
-上瘾入骨i
-上瘾入骨i 2021-01-16 14:14

I have the following folder structure.

.
B.py 
├──test
   ├
   A.py 

I can import A.py in B.py by

from test import A
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题