【发布时间】:2018-11-12 08:23:27
【问题描述】:
if(msg.topic == "abc" & msg.payload == b'1'):
print("Loop entered")
TypeEror: unsupported operand types for &: 'str' and 'bytes'
【问题讨论】:
-
你没有问问题。
-
使用
and而不是&。
标签: python string python-3.x