Use os.path.realpath (__ file__) to obtain the path name of the current folder, use the path os.path.split be cut
import os src, _= os.path.split(os.path.realpath(__file__)) print(src, _)
Algorithms effect
Use os.path.realpath (__ file__) to obtain the path name of the current folder, use the path os.path.split be cut
import os src, _= os.path.split(os.path.realpath(__file__)) print(src, _)
Algorithms effect