from . import * from module

后端 未结 3 955
粉色の甜心
粉色の甜心 2021-01-01 18:10

There is a script in the working directory which I can access with:

from . import core.py

I would also like to import * from core.py. How

3条回答
  •  别那么骄傲
    2021-01-01 18:14

    To keep the exact same semantics as from . import core, you'll want to do:

    from .core import *
    

提交回复
热议问题