回2楼:
实在搞不懂了...直接运行无问题,得到的结果也对,但只要用DEBUGGER运行,就会出错...以下出错提示,有点长
Traceback (most recent call last):
File "D:\Python25\lib\idlelib\Debugger.py", line 67, in run
return self.idb.run(*args)
File "D:\Python25\lib\bdb.py", line 366, in run
exec cmd in globals, locals
File "C:\Documents and Settings\Administrator\桌面\脚本测试工具\test1.py", line 34, in <module>
TestCrypt(0,'1111111111111111','2222222222222222')
File "C:\Documents and Settings\Administrator\桌面\脚本测试工具\test1.py", line 26, in TestCrypt
Des=CDLL('Crypt.dll')
File "D:\Python25\lib\ctypes\__init__.py", line 346, in __init__
self._name = name
File "D:\Python25\lib\ctypes\__init__.py", line 346, in __init__
self._name = name
File "D:\Python25\lib\bdb.py", line 48, in trace_dispatch
return self.dispatch_line(frame)
File "D:\Python25\lib\bdb.py", line 66, in dispatch_line
self.user_line(frame)
File "D:\Python25\lib\idlelib\Debugger.py", line 21, in user_line
self.gui.interaction(message, frame)
File "D:\Python25\lib\idlelib\Debugger.py", line 186, in interaction
self.show_variables(1)
File "D:\Python25\lib\idlelib\Debugger.py", line 299, in show_variables
lv.load_dict(ldict, force, self.pyshell.interp.rpcclt)
File "D:\Python25\lib\idlelib\Debugger.py", line 455, in load_dict
svalue = self.repr.repr(value) # repr(value)
File "D:\Python25\lib\repr.py", line 24, in repr
return self.repr1(x, self.maxlevel)
File "D:\Python25\lib\repr.py", line 34, in repr1
s = __builtin__.repr(x)
File "D:\Python25\lib\ctypes\__init__.py", line 354, in __repr__
(self.__class__.__name__, self._name,
File "D:\Python25\lib\ctypes\__init__.py", line 361, in __getattr__
func = self.__getitem__(name)
File "D:\Python25\lib\ctypes\__init__.py", line 366, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))