2024-09-28 22:24:39 发布
网友
我用的是Python而不是铁蟒。在
有这样一个函数:
test(ref string p1,out string p2)
如何在Python3.6中调用test?在
test
我不能在没有的情况下测试代码通讯.dll,请检查以下代码是否对您有效:
import clr import sys sys.path.append("D:\\dll") # path to dll clr.AddReference("communication") # add reference to communication.dll from communication import test ref_string_p1 = " " out_string_p2 = test(ref_string_p1) print(out_string_p2)
我不能在没有的情况下测试代码通讯.dll,请检查以下代码是否对您有效:
相关问题 更多 >
编程相关推荐