Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x python 3.4如何创建标签_Python 3.x_Label - Fatal编程技术网

Python 3.x python 3.4如何创建标签

Python 3.x python 3.4如何创建标签,python-3.x,label,Python 3.x,Label,我正在尝试创建我的第一个GUI。我下面的代码有一个错误 name=label(text="this is a label") 这是我收到的错误消息 NameError: name 'label' is not defined 你能帮我吗 你在网上搜索过吗?我在教程上看过,但它是硬写标签。Python区分大小写。

我正在尝试创建我的第一个GUI。我下面的代码有一个错误

name=label(text="this is a label")
这是我收到的错误消息

NameError: name 'label' is not defined  

你能帮我吗

你在网上搜索过吗?我在教程上看过,但它是硬写标签。Python区分大小写。