2 #Label标签 用于可显示文本或图片,不可编辑 3 import tkinter as tk 4 #初始化窗口 5 window = tk.Tk() 6 #窗口名称 7 window.title("My Window") 8 #窗口大小,是 x 不是 * 9 window.geometry(" Read More
#键盘输入 from pynput.keyboard import Key,Controller,Listener keyboard = Controller() keyboard.press("a") #按下a keyboard.release("a") #松开a keyboard.press(" Read More