擅长:python、mysql、java
<p>真正的条件是-<code>HAVE_PREAD</code>是否导出?在</p>
<p>以下是相关片段:<a href="https://github.com/python/cpython/blob/4a172ccc739065bb658c75e8929774a8e94af9e9/Modules/posixmodule.c#L8422" rel="nofollow noreferrer">https://github.com/python/cpython/blob/4a172ccc739065bb658c75e8929774a8e94af9e9/Modules/posixmodule.c#L8422</a></p>
<p>由于MSVC++没有提供<code>pread</code>,而是使用了<a href="https://msdn.microsoft.com/en-us/library/aa365467%28v=VS.85%29.aspx" rel="nofollow noreferrer">^{<cd3>}</a>,所以它不会通过<code>os</code>模块导出。在</p>
<p>不过,它似乎是在<a href="https://github.com/python/cpython/blob/55edd0c185ad2d895b5d73e47d67049bc156b654/Modules/overlapped.c#L731" rel="nofollow noreferrer">overlapped</a>中导出的。您可以在<code>_winapi</code>中找到它。在</p>