马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 言16 于 2020-4-28 11:10 编辑 # 我是病毒.py
from tkinter import messagebox as msgbox
import easygui as eg
import tkinter as tk
eg.messagebox(title='', msg='我是病毒哦~', ok_button='???')
<div>eg.messagebox(title='我是病毒哦~', message='我可以让你的电脑马上变成废物!', ok_button='真的吗?')</div><div>eg.messagebox(title='我是病毒哦~', message='想尝尝我的威力吗?', ok_button='没选择!哈哈哈ψ(`∇´)ψ')</div><div>if eg.messagebox(title='我是病毒哦~', message='有*你就点确定!', ok_button='确定') == 'ok':</div><div> while True:</div><div> msgbox.showwarning(title='哈哈哈<span style='display: inline !important; float: none; background-color: rgb(247, 247, 247); color: rgb(68, 68, 68); font-family: Tahoma,"Microsoft Yahei","Simsun"; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;'>ψ(`∇´)ψ已进入疯狂模式,点不掉啦!<span style='display: inline !important; float: none; background-color: rgb(247, 247, 247); color: rgb(68, 68, 68); font-family: Tahoma,"Microsoft Yahei","Simsun"; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;'>ψ(`∇´)ψ</span></span>', message='你已被XX包围!')</div>
避免进入死循环的方法:第四步直接关闭窗口 |