1.引入有两种方法

一种:

import tkinter

# 创建主窗口
win = tkinter.Tk()

二种:

from tkinter import *

win = Tk()