Python adds the parent directory to the working path to solve the problem that import cannot find the path

Solution

In the running program add:

import os
import sys

sys.path.append("..")
sys.path.append(os.pardir)

Guess you like

Origin blog.csdn.net/weixin_35757704/article/details/132404576