📅  最后修改于: 2022-03-11 14:59:11.405000             🧑  作者: Mango
# double back-slash for window's nonsense.
location_of_files = 'C:\\Users\\H\\Desktop\\Intermediate Python'
file_name = 'example.txt'
with open(os.path.join(location_of_files, file_name)) as f:
print(f.read())