这个问题让我感到困惑。 也许问题出在代码上,我希望你能看一下。
with open(training_images_labels_path,'r') as file:
lines = file.readlines()
他说文件不存在。
FileNotFoundError: [Errno 2] No such file or directory: '\\Desktop\\project\\data\\generated\\training_images_labels.txt'
虽然文件已经存在
我需要解决方案。
\\
开头的路径极不可能是C:\Desktop\...
,因为这表示根目录。请再次确认该路径是否真实存在。 - Caramiriel