[英]python pydev and raspberryPi
我使用python Pydev编写了一些代码。
代码效果很好,效果很好。
但是当我在raspberryPi上运行它时,发生了错误,并且运行不正常。 当然,我无法得到正确的结果。
print ser.readline()
AttributeError: 'int' object has no attribute 'readline'
File "gpste.py", line 103, in sav_loc
line = str(location.address)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128)
有什么问题??
当我插入Ctrl + c时,它不起作用。 为什么以及如何在进程中间停止程序?
您在这里遇到两个问题。
似乎您用一个整数重载了ser
。 有关详细信息,我们需要更多代码。
location.address
没有正确的编码。 再说一遍,我们将需要location.address
的代码和内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.