Windowsでは、ctypesモジュールをインポートすると、ctypes.cdll.msvcrt
オブジェクトが自動的に存在し、 Microsoft C++ランタイムライブラリaccording to the docsを表します。ctypes内のmsvcrtのさまざまなバージョン
しかし、find_msvcrtという機能があることに気がつくと、"return the filename of the VC runtype library used by Python"
になります。
それはさらに状態、"If you need to free memory, for example, allocated by an extension module with a call to the free(void *), it is important that you use the function in the same library that allocated the memory."
だから私の質問は、私が既に持っているctypes.cdll.msvcrt
ライブラリと私はfind_msvcrt
機能をロードすることができます1との違いは何でしょうか?特定の状況下では、彼らは同じ図書館ではないでしょうか?
related:[Windows上のPythonでmsvcrtにアクセスする方法の違いは何ですか?](https://stackoverflow.com/q/30790494/4279) – jfs