擅长:python、mysql、java
<p>你可以<a href="http://docs.python.org/extending/" rel="nofollow noreferrer">embed python inside C</a>。真正的诀窍是在C值和Python值之间进行转换。不过,一旦完成了这项工作,创建DLL就是<a href="https://stackoverflow.com/questions/847396/compile-a-dll-in-c-c-then-call-it-from-another-program">pretty straightforward</a>。</p>
<p>但是,为什么需要创建dll?您需要从非python程序中使用它吗?</p>