猫史档案馆


【Python作品分享】error【作品秀】

用户:丁仪awa丁仪awa查看:0 回复:0 评论:0 创建时间:2022-01-27T12:52:06


【作品展示】

center_image

 

【作品介绍】

可以拿来坑你的老铁

 

【作品源代码】

from tkinter import*

def error(x):
    for i in range(x):
        the_error = Tk()
        the_error.title("ERROR")
        the_error.geometry("250x250+150+150")
        error1 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)
        error2 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)
        error3 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)
        error4 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)
        error5 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)
        error6 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)
        error7 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)
        error8 = Button(
            the_error, text="OK", command=the_error.destroy, width=200)

        error1.pack()
        error2.pack()
        error3.pack()
        error4.pack()
        error5.pack()
        error6.pack()
        error7.pack()
        error8.pack()
        the_error.mainloop()

error(int(input("输入一个数字,越大越好:")))

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页