Type/to search
0
Follow
0
Followers
Comment accéder aux fichiers sur l'ordinateur local dans la stratégie Python
Help
Created 2024-01-14 14:22:01  Updated 2024-01-14 14:25:16
 4
 1196

S'il vous plaît, comment faire pour enregistrer le fichier sur un ordinateur local dans la stratégie, avec l'OS afficher l'échec, apparaît ci-dessous

保存文件失败:[Errno 13] Permission denied: '/home/data.txt'

Le code est le suivant :

img

Related Recommendations
Comment
All comments (4)

    你在/home目录没有写的权限,可以写到/tmp/data.txt下去

    3 years ago

    这个策略(代码)是在本地托管者上运行的?还是在服务器上运行的? python可以保存文件的,检查下权限是否正常。

    3 years ago

    在服务器上,不太懂,请指教,谢谢

    3 years ago

    服务器上,把(保存的)文件从服务器下载下来就行了。

    3 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)