Am 19.06.21 um 07:16 schrieb Jach Feng:
Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道:
Am 19.06.21 um 05:59 schrieb Jach Feng:
import tkinter as Tk
Tk
<module 'tkinter' from 
'C:\\Users\\jfong\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\tkinter\\__init__.py'>
from tkinter import *
Tk
<class 'tkinter.Tk'>
tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'tkinter' is not defined

What's the point? That has no relation to the question.

"import A as B" does not define A. That's a feature, not a bug.

Christian
No, it's not. It's only because this line triggers my response:-)
label1 = tkinter.Label(master, text='Hellooooo')

You have posted this as an answer to Liya's question about Google Colab. What you wrote has nothing to do with it and does not help with Liya's problem.

I guess you wanted to post another question? Then please open a new thread. In addition, the question is unclear, you just posted a transcript of three lines of Python.

        Christian
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to