两种解决方法:
一是改变环境目录为text文本所在路径:import ospath = r"D:\temp\church"os.chdir(path)二是直接写好文本路径:in_text = r"D:\temp\church\beijing.txt"
时间:2020-02-07 19:52:56
两种解决方法:
一是改变环境目录为text文本所在路径:import ospath = r"D:\temp\church"os.chdir(path)二是直接写好文本路径:in_text = r"D:\temp\church\beijing.txt"