1
我需要從Python腳本打開本地網絡上的文件。Python - 訪問受保護的網絡資源
在基本情況下是很簡單的:
fh = open('\\servername\path\resource.txt', 'r')
...
的問題是,訪問該網絡資源的保護。我試過類似的東西:
fh = open('\\servername\path\[email protected]:pass', 'r')
但它不起作用。
有什麼想法?
好的,非常感謝你! –