标签: python python-3.x
我认为在python中可以连接两个字符串,我的小段代码可能会丢失一些内容:
def create_set(feature, value): return b'{"type":"set","feature":'+feature+',"value":'+value+'}' on = create_set("main.power", "on")