' 内嵌套" 错误提示--python

作者在 2016-11-09 11:08:32 发布以下内容

今天要模拟发送心跳的信息,本来昨天好好的,但是今天就不行了。叫来小离离,试了试问题依旧,没办法叫来老于,还是测试了一遍,最后才发先,居然是' "里面的双引号少了一个,最后导致了命令发过去。借口不识别。好囧啊,因为要满足7次心跳。但是没发现。python居然没有提示有问题。搞得一直以为是esl_working的借口死掉了。太low的问题啦

for i in range(7):
    time.sleep(1)
    print  sock.sendto('DATASTART51000[{"eslid":"5D-CD-D9-99","nw1":"55-BA-8F-66","nw3":"198","rfpower":"58","netid":"32","apid":"1","version":"56","battery":"30","reserve":"0"}]0X0000DATAEND',addr)
print  sock.sendto('DATASTART51000[{"eslid":"5D-CD-D9-99","nw1":"55-BA-8F-03,"nw3":"198","rfpower":"58","netid":"32","apid":"1","version":"56","battery":"66","reserve":"0"}]0X0000DATAEND',addr)



公司 | 阅读 2013 次
文章评论,共0条
游客请输入验证码
浏览2354374次