在路径中声明文件的正确方法是什么?

时间:2019-03-27 05:54:51

标签: path

我想尝试这个SVM

我想在桌面上读取文件虹膜。当我打印此

df = pd.read_csv('C:\Users\User\Desktop\iris.data',names=['sepal-len', 'sepal-width', 'petal-len', 'petal-width','target'])

我收到此消息

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

我的路径有问题吗?

0 个答案:

没有答案
相关问题