我正在尝试线程一个函数,该函数打开串行com并发送一条消息,然后等待重播。在线程函数之外,串行函数可以工作,但在其中我得到了以下错误: Exception in thread Thread-1: File, line 37, in serial
ser = serial.Serial('/dev/ttyACM0', baudrate = 9600) # setup com to ser
将导入更改为from-import后,我遇到以下错误:today = date.today() if(date.fromtimestamp(mktime(entry.date_parsed))==today):
AttributeError: 'function' object has no attribute
这个问题是新的,它是这个星期第一次看到的(可能它以前就在那里)。回过头来不起作用,问题仍然存在。有很多代码被修改了。
你能给我个提示或解决办法吗?Exception has occurred: AttributeError (note: full exception trace is shown but execution is paused*-zDD7ik9_/lib/python3.7/site-packages/django/db/models/sql&
我需要读取函数的二进制文件,从这个链接,我应该使用一个RawIOBase对象来读取它。但是,在如何打开与RawIOBase一起使用的文件方面,我找不到任何地方。现在,我已经尝试过将二进制读入字符串。documentFileName+".bin", "rb")) as binFile:但这会引发错误Attribu