本人使用python3 from tkinter import* import os from PIL import Image, ImageTk root=Tk() a=Label(root,text="输入定时的时间(h):",width=20).grid(row=1,padx=20,pady=20) e=Entry(root,width=20) e.grid(row=1,column=1,padx=20,pady=20) def ks(): global e #e 是一个全局变量…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace AutoCloseComputer { public partial class Form1 : Form {…