Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File PermissionError:[Errno 13]权限被拒绝:';数据';_File - Fatal编程技术网

File PermissionError:[Errno 13]权限被拒绝:';数据';

File PermissionError:[Errno 13]权限被拒绝:';数据';,file,File,我想打开一个名为data的文件,并将其放入一个名为base_donnees的var中 base_donnees = open("data") 这是有问题的文件: T,rho,mu 0,999.8,1.78e-3 5,1000,1.52e-3 10,999.7,1.31e-3 15,999.1,1.14e-3 20,998.2,1.00e-3 25,997.0,0.89e-3 30,995.7,0.80e-3 40,992.2,0.65e-3 但是我收到了这个错误,我应该有

我想打开一个名为data的文件,并将其放入一个名为base_donnees的var中

base_donnees = open("data")
这是有问题的文件:

T,rho,mu
0,999.8,1.78e-3
5,1000,1.52e-3
10,999.7,1.31e-3
15,999.1,1.14e-3
20,998.2,1.00e-3
25,997.0,0.89e-3
30,995.7,0.80e-3
40,992.2,0.65e-3
但是我收到了这个错误,我应该有访问它的权限,因为我从github中的类存储库中获取了它:

PermissionError: [Errno 13] Permission denied: 'data'

任何帮助都将不胜感激

确保您具有此文件的读写权限

对于mac:

对于windows: