python发生系统错误53或67

时间:2019-09-16 15:05:51

标签: python windows python-2.7

使用此代码

mypytest.py:9: error: Item "None" of "Optional[Session]" has no attribute "request"
mypytest.py:13: error: Item "None" of "Optional[Session]" has no attribute "close"

我知道

command = 'net use v: \\sshfs\user@1.2.3.4!1234\\\\ /USER:user *'
p = subprocess.Popen(command, shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
p.wait()

有了这个System error 67 has occurred. The network name cannot be found.

我知道

command = 'net use v: \\\\sshfs\user@1.2.3.4!1234\\\\\\\\ /USER:user *'

它们都不起作用。

但是当我在标准命令行中运行命令System error 53 has occurred. The network path was not found. 时,它可以正常工作。有什么想法吗?

0 个答案:

没有答案