def getText(): txt = open(r"C:\Users\lenovo\Desktop\hamlet.txt","r").read() #“\“字符串前加r,表路径 txt = open(r"C:\Use 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交