我遇到问题:
for line in open("/etc/wpa_supplicant/wpa_supplicant.conf", mode="r", encoding="utf8"):
print(line)
结果是:
IOError:[Errno 13]权限被拒绝:' /etc/wpa_supplicant/wpa_supplicant.conf'
什么是问题?
答案 0 :(得分:1)
尝试:
sudo python [yourcode]
或
chmod 777 /etc/wpa_supplicant/wpa_supplicant.conf
python [yourcode]