#使用绝对路径 双反斜杠
with open('E:\\use\\data.txt') as file_object:
contents = file_object.read()
print(contents.rstrip())
#使用绝对路径 正斜杠
with open('E:/use/data.txt') as file_object:
contents = file_object.read()
print(contents.rstrip())