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
--
https://mail.python.org/mailman/listinfo/python-list