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'