就是创建不了文件,想知道是什么原因,需要怎么做
代码:with open('d:\\aa.txt','w') as f:
print("hello world!",file = f)
报错:Traceback (most recent call last):
File "C:\Users\Hasee\AppData\Local\Programs\Python\Python39\aaa.py", line 1, in <module>
with open('d:\\aa.txt','w') as f:
PermissionError: [Errno 13] Permission denied: 'd:\\aa.txt'