To get the full path to the directory a Python file is contained in, ... import os dir_path = os.path.dirname(os.path.realpath(__file__)).
確定! 回上一頁