時間:2023-07-24 00:48:01 | 來源:網(wǎng)站運營
時間:2023-07-24 00:48:01 來源:網(wǎng)站運營
我用Python做了一個簡單易上手的“造假”中考網(wǎng)頁?:?> 原定于2022年7月12日出成績的杭州中考,卻因為改卷老師的改卷速度,提前在2022年7月9日發(fā)布了成績,別看這短短的三天,7月9日一出成績,朋友圈哀嚎一片,大家都覺得今年的分數(shù)線太高了。就那我自己舉例子,我的社交媒體中只有一兩個考的不錯的人公布了自己的成績。然后,我就看到了一條來自我媽的轉(zhuǎn)發(fā)信息。http://www.hiencode.com/quoted.html
=C4=E3=B5=C4=C3=FB=D7=D6
# HSEES 中考分數(shù)修改器# 請勿用于除學習外的任何非法用途import requestsfrom bs4 import BeautifulSoupimport datetime# 由于本人實在是搞不懂如何弄GBK編碼所以只能在網(wǎng)上找了一個接口 該接口可能隨時失效def requests_quopri(msg): data = { "text" : msg, "flag" : "quoted", "encode_flag" : "gbk" } quopri = requests.post("http://www.hiencode.com/ctf/ctf_encode",data = data) quopri = quopri.text # print(quopri) soup = BeautifulSoup(quopri,"html.parser") quopri_show = soup.div.div.pre.text return quopri_showdef changers(chi="120",mat="120",eng="120",pol="90",his="90",phy="100",che="100",pe="70",ms="810",same="1",name="王大牛",num="0112280000"): qp_name = requests_quopri(name) # print(qp_name) # 獲取時間 date = datetime.date.today() year = date.year month = date.month day = date.day now_date = str(year)+"年"+str(month)+"月"+str(day)+"日" qp_date = requests_quopri(now_date) with open("./HSEES.mhtml") as hsees: hsees_line = hsees.read() # print(hsees_line) hsees_line = hsees_line.replace("語文",chi) hsees_line = hsees_line.replace("數(shù)學",mat) hsees_line = hsees_line.replace("英語",eng) hsees_line = hsees_line.replace("道法",pol) hsees_line = hsees_line.replace("歷史",his) hsees_line = hsees_line.replace("物理",phy) hsees_line = hsees_line.replace("化學",che) hsees_line = hsees_line.replace("體育",pe) hsees_line = hsees_line.replace("總分",ms) hsees_line = hsees_line.replace("同位號",same) hsees_line = hsees_line.replace("名字",qp_name) hsees_line = hsees_line.replace("學號",num) hsees_line = hsees_line.replace("時間",qp_date) with open("./FakeScore.mhtml","w+")as fs: fs.write(hsees_line) fs.close()def show_score():#chi="120",mat="120",eng="120",pol="90",his="90",phy="100",che="100",pe="70",ms="810",same="1",name="王大牛",num="0112280000" chi = input("請輸入你的語文成績:") mat = input("請輸入你的數(shù)學成績:") eng = input("請輸入你的英語成績:") pol = input("請輸入你的政治成績:") his = input("請輸入你的歷史成績:") phy = input("請輸入你的物理成績:") che = input("請輸入你的化學成績:") pe = input("請輸入你的體育成績:") ms = int(chi)+int(mat)+int(eng)+int(pol)+int(his)+int(phy)+int(che)+int(pe) import random same = random.randint(1,100) name = input("請輸入你的名字:") num = input("請輸入你的學號:") print("程序正在自動生成成績中... 請稍后 ...") changers(str(chi),str(mat),str(eng),str(pol),str(his),str(phy),str(che),str(pe),str(ms),str(same),str(name),str(num)) import os,webbrowser webbrowser.open("file:///"+os.path.realpath("FakeScore.mhtml"))show_score()
祝福各位中考考生考上理想的高中呀!關(guān)鍵詞:簡單
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。