输入图像python的目录

问题描述

代码中的目录有问题

directory_location = str(input("Enter directory location"))
data,labels = data_extraction(directory_location)
data = np.array(data)

何时在行中运行((谁的目录))? 我写(例如:G:\ sar + enter) 但错误:在此处输入代码 输入目录位置“ G:// SAR”

     49 
     50 directory_location = str(input("Enter directory location"))
---> 51 data,labels = data_extraction(directory_location)
 
<ip
OSError: [WinError 123] The filename,directory name,or volume label Syntax is incorrect: '"G://SAR"'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)