fpath = r'D:/pythonTest/hello.txt' # 加r是为了防止特殊字符的生效,将其转义 with open(fpath, 'r') as f: s = f.read() print(s)
你这不对吧!
Sign in to make a reply
Teresa委