python import custom library

from   . library import custom * (PS: Note that point and asterisk)

Examples

Train and test the introduction utils

Three files in the same directory, the file structure is as follows

 

 

test file guide package statement

from .train  import *
from .utils  import *

 

Guess you like

Origin www.cnblogs.com/wei-jing/p/10987637.html