【发布时间】:2018-10-27 03:58:43
【问题描述】:
我尝试使用 Z3Py dll,但没有成功。这是我的测试程序和错误。我对 Python 很陌生,我想我错过了一些大家都知道的重要部分。
init("z3.dll")
Traceback (most recent call last):
File "test5.py", line 1, in <module>
init("z3.dll")
NameError: name 'init' 未定义
我还尝试了另一种加载 dll 的方法:
import ctypes
so = ctypes.WinDLL('./z3.dll') #for windows
print(so)
s = Solver()
<WinDLL './z3.dll', handle 10000000 at 0x10b15f0>
Traceback (most recent call last):
File "test5.py", line 5, in <module>
s = Solver()
NameError: name 'Solver' is not defined
【问题讨论】: