with open(r'c:\Users\王民\Desktop\新建文本文档 (2).txt','r',encoding='utf-8')as file: a = file.read() print(type(a[3:5]))