2024-10-02 16:23:18 发布
网友
我做了一段代码来测量我的rpi的cpu温度,如果在GPIO端口7上发送信号的温度超过60摄氏度,如果不超过60摄氏度,则不在端口上发送信号,但我得到了以下错误:
File "tempgate.py", line 17 def FanController(CPU_temp) : ^ SyntaxError: invalid syntax
文件是:
您有一个未闭合的try...块与except不匹配。在
try...
except
您有一个未闭合的
try...
块与except
不匹配。在相关问题 更多 >
编程相关推荐