Python
-草原骑士-
嵌入式自学者
喜欢历史,哲学类
展开
-
移植python到zynq
移植python到zynq移植python到zynq编译环境交叉编译python解决缺少zlib库的问题。重新编译python。python3.7打包安装解决缺少zlib库的一些失败尝试移植python到zynq编译环境Ubuntu 16.04;Python 3.7.5;petalinux-v2018.3;zlib-1.2.8.tar.gz;交叉编译python官网下载pyt...原创 2020-04-16 16:12:05 · 2633 阅读 · 5 评论 -
AttributeError: 'module' object has no attribute 'Serial'
源代码如下import serial t=serial.Serial(0)print t.portstrwhile True: str=t.read(1) if str: print str运行时出现如下错误AttributeError: 'module' object has no attribute 'Serial'无奈,问goog原创 2013-09-09 15:29:42 · 8519 阅读 · 0 评论 -
Python使用Tkinter错误,NameError: global name 'TOP' is not defined
出现错误的代码如下:import Tkinter def CreateGUI(): top = Tkinter.Tk() rec_label = Tkinter.Label(top, text='RecMessage', bg='orange') rec_label.pack(fill=X,side=TOP) rec_text = Tkinter.Text(top).pack原创 2013-12-26 23:47:43 · 9421 阅读 · 3 评论