“ImportError: attempted relative import with no known parent package” despite being in the same directory

前端 未结 0 609
长情又很酷
长情又很酷 2020-12-08 03:27

why is this line throwing error when both the files are in the same directory ?

INPUT -

from .constants import RED, WHITE, SQUARE_SIZE, GREY

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