标签: python-3.x file
classes = [] with open(r'D:/classes.txt', 'r') as f: for line in f: print(line) classes.append(line) for c in classes: print(c)
这怎么不行?
FileNotFoundError: [Errno 2] No such file or directory: 'D:/classes.txt'