Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
In the path plus the current project path
In front plus
SYS Import
Import os
sys.path.append (os.path.abspath (os.getcwd () + "... / ... / ... / ..."))
into the module directory, execute python3 xx.py