擅长:python、mysql、java
<p>根据<strong>denfromufa</strong>和<a href="https://stackoverflow.com/a/27161639/2137550">this thread</a>,只需要在添加引用之前添加DLL的路径(在IronPython中不需要)</p>
<pre><code>import clr
import os
import sys
sys.path.append(os.path.dirname('__file__'))
</code></pre>
<p>只是提供绝对的路径clr.AddReference结果为<code>SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape</code>。在</p>