Python tricky applet that is easy to make people lose friends, purely for entertainment and use with caution

Hello everyone, I'm Spicy.
insert image description here

As a very qualified and standard programmer, of course I have my own way of entertainment, and I will occasionally play tricks in my spare time, but my way of tricking is rather special. Between friends who have a bad relationship, be careful! I've lost a few fake friends because of this

Program environment:

​ python3.7

​ pyinstaller library – used to package programs into exe executables.

​ Installation: pip install pyinstaller

​ pyinstaller packaging command: pyinstaller -F -w filename.py

program one

​ This program can play with objects. PS: If there is no object, you can new one

​ Create the file:

insert image description here

​ The code is as follows:

# -*- coding: utf-8 -*-
#设置编码头,记得文件要用utf-8格式保存

import tkinter.messagebox

while True:
	tkinter.messagebox.showerror('你的电脑要爆炸啦!')

​ After saving, open the command line and enter the file path:

insert image description here

​ Use the command packager:

insert image description here

​ Find the .exe file in the dist folder and open it:

insert image description here

​ This will keep looping pop-ups, and the task manager can end the task in the process. PS: The object is grumpy and used with caution! ! !

program two

​ If your friend or roommate is very voluptuous, you can use this program to make him give up voluptuousness and be happy with you. PS: Use with caution if the relationship is not good! I've lost several fake friends because of it_

# -*- coding: utf-8 -*-
#设置编码头,记得文件要用utf-8格式保存
import webbrowser

while True:
	webbrowser.open('https://www.huya.com/26200503')

​ Refer to the above for the packaging process, and the results are as follows:

insert image description here

Then…

insert image description here

Caution: Do not send it to people who are working! Or a close friend! ! !

OK, here is the update. If you try and don't get beaten to death, I'll give you a few more next time. By the way, many people are asking me for some previous source code, learning routes, and videos. I'm sorry I didn't blow it clearly. There is a small card of mine at the bottom, just find me directly.insert image description here

Guess you like

Origin blog.csdn.net/AI19970205/article/details/124110995