弹窗骚扰,纯属搞怪!
本帖最后由 言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>
避免进入死循环的方法:第四步直接关闭窗口 这操作牛皮{:10_266:}
页:
[1]