Python Öffnen Sie die Datei im Vergleich zum Modul

import os

TEST_FILENAME = os.path.join(os.path.dirname(__file__), 'test.txt')
Good Goshawk