How can I use a DLL file from Python?

前端 未结 7 1317
迷失自我
迷失自我 2020-11-22 16:06

What is the easiest way to use a DLL file from within Python?

Specifically, how can this be done without writing any additional wr

相关标签:
7条回答
  • 2020-11-22 16:38

    Maybe with Dispatch:

    from win32com.client import Dispatch
    
    zk = Dispatch("zkemkeeper.ZKEM") 
    

    Where zkemkeeper is a registered DLL file on the system... After that, you can access functions just by calling them:

    zk.Connect_Net(IP_address, port)
    
    0 讨论(0)
提交回复
热议问题