【发布时间】:2023-03-15 20:49:01
【问题描述】:
有人可以解释为什么这个代码:
import sys
sys.path.append("C:\\WINDOWS\\system32")
import clr
clr.AddReferenceToFile("wiimotelib.dll")
在 IronPython 2.6 中运行良好,但在 IronPython 2.7 alpha 1 中失败并出现 IOException,并且消息:
Could not add reference to assembly wiimotelib.dll
这是 2.7 中的新行为,还是 alpha 版本的错误?
【问题讨论】:
标签: python ironpython