python 抽搐

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 抽搐相关的知识,希望对你有一定的参考价值。

#mainly labjack stuff.

#open device with socket.
import socket
sock = socket.socket()
sock.connect(("192.168.1.207", 502))
sock.close()

#LJM lib open (any)
>>> from labjack import ljm
>>> handle = ljm.openS("any", "any", "any")
>>> info = ljm.getHandleInfo(handle)
>>> info
(7, 3, 470013239, -1062731281, 502, 1040)
>>> ljm.close(handle)

#Specific handle open 
>>> handle = ljm.openS("t7", "ethernet", "192.168.1.239")
>>> info = ljm.getHandleInfo(handle)
>>> info
(7, 3, 470013239, -1062731281, 502, 1040)
>>> ljm.close(handle)

#use the ip address as a handle identifactor ( efficient )

以上是关于python 抽搐的主要内容,如果未能解决你的问题,请参考以下文章

python 抽搐聊天输入

python 抽搐聊天输入

如何防止机器人发送垃圾邮件? |抽搐.py |不和谐.py

Gtk3和开罗动画抽搐

带卷曲的后抽搐

css3微调器上的抽搐动画