擅长:python、mysql、java
<p>使用<a href="http://pywin32.sourceforge.net/" rel="noreferrer">^{<cd1>}</a>(Python for Windows扩展名),
访问<code>win32wnet</code>模块中的windows网络方法。
<a href="http://docs.activestate.com/activepython/2.7/pywin32/win32wnet__WNetAddConnection2_meth.html" rel="noreferrer">^{<cd3>}</a>方法允许您指定用户名和密码。</p>
<pre><code>WNetAddConnection2(NetResource, Password, UserName, Flags)
</code></pre>
<blockquote>
<p>Creates a connection to a network resource. The function can redirect a local device to the network resource.</p>
</blockquote>
<p>连接处于活动状态后,使用常规目录和文件方法访问共享。</p>