Mechanism - why direct run on main with relative import cause “attempted relative import with no known parent package”

前端 未结 0 1303
北海茫月
北海茫月 2021-01-18 12:32

Run python main.py where main.py has relative imports will fail.


└── src                            
   ├── main.py    # from main.p         


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