This article example describes how python outputs the path of a file in the current directory. Shared for your reference. Specific implementation methods are as follows:
import os import sys path = (([0]),'') print path
I hope that what I have described in this article will help you in your Python programming.