5個(gè)無聊透頂?shù)?Python 程序
點(diǎn)上方關(guān)注“SQL數(shù)據(jù)庫開發(fā)”,
設(shè)為“置頂或星標(biāo)”,第一時(shí)間送達(dá)干貨
來源:https://dream.blog.csdn.net/
exe 程序,發(fā)給朋友才有意思。pip install pyinstaller。pyinstaller?-F?文件名.py
無聊程序之一
while?True:
????n?=?input("猜猜我在想啥?")
????print("猜錯(cuò)嘍")

無聊程序之二
import?tkinter.messagebox
while?True:
?????tkinter.messagebox.showerror('Windows?錯(cuò)誤','你的電腦正在被攻擊!')

無聊程序之三
import?webbrowser
while?True:
?????webbrowser.open('www.csdn.net')


無聊程序之四
import?tkinter?as?tk
import?random
import?threading
import?time
def?boom():
????window?=?tk.Tk()
????width?=?window.winfo_screenwidth()
????height?=?window.winfo_screenheight()
????a?=?random.randrange(0,?width)
????b?=?random.randrange(0,?height)
????window.title('你是一個(gè)傻狍子')
????window.geometry("200x50"?+?"+"?+?str(a)?+?"+"?+?str(b))
????tk.Label(window,?text='你是一個(gè)傻狍子',?bg='green',
?????????????font=('宋體',?17),?width=20,?height=4).pack()
????window.mainloop()
threads?=?[]
for?i?in?range(100):
????t?=?threading.Thread(target=boom)
????threads.append(t)
????time.sleep(0.1)
????threads[i].start()

無聊程序之五
import?os
import?time
a?=?"""
?????oooo?oooooooooo.????????????.oooooo..o?????????????????????oooo?????????o8o??oooo??oooo
?????`888?`888'???`Y8b??????????d8P'????`Y8?????????????????????`888?????????`"'??`888??`888
?????888??888??????888?????????Y88bo.???????.ooooo.???.ooooo.???888??oooo??oooo???888???888
?????888??888??????888??????????`"Y8888o.??d88'?`88b?d88'?`"Y8??888?.8P'???`888???888???888
?????888??888??????888?8888888??????`"Y88b?888ooo888?888????????888888.?????888???888???888
?????888??888?????d88'?????????oo?????.d8P?888????.o?888???.o8??888?`88b.???888???888???888
.o.?88P?o888bood8P'???????????8""88888P'??`Y8bod8P'?`Y8bod8P'?o888o?o888o?o888o?o888o?o888o
`Y888P
功能列表:
1.預(yù)約商品
2.秒殺搶購(gòu)商品
"""
print(a)
key?=?input("請(qǐng)選擇:")
if?key?==?"1":
????time.sleep(1.5)
????print('沒有預(yù)約到\n')
????time.sleep(3)
????print('沒事的,來抱一哈\n')
else:
????print("既然如此...")
????time.sleep(3)
????print("那你想得美~~~~~")
????os.system('shutdown?-r?-t?10')
time.sleep(10)

點(diǎn)擊右下角「在看」和轉(zhuǎn)發(fā)
是對(duì)我們最大的支持
最后給大家分享我寫的SQL兩件套:《SQL基礎(chǔ)知識(shí)第二版》和《SQL高級(jí)知識(shí)第二版》的PDF電子版。里面有各個(gè)語法的解釋、大量的實(shí)例講解和批注等等,非常通俗易懂,方便大家跟著一起來實(shí)操。
有需要的讀者可以下載學(xué)習(xí),在下面的公眾號(hào)「數(shù)據(jù)前線」(非本號(hào))后臺(tái)回復(fù)關(guān)鍵字:SQL,就行
數(shù)據(jù)前線
后臺(tái)回復(fù)關(guān)鍵字:1024,獲取一份精心整理的技術(shù)干貨
后臺(tái)回復(fù)關(guān)鍵字:進(jìn)群,帶你進(jìn)入高手如云的交流群。
評(píng)論
圖片
表情
