摘要: import requestsimport reurl = "https://www.777zw.net/2/2142/751765.html"with open('tunshixingkong.txt', 'a', encoding='utf8') as f: for i in range(500 阅读全文
posted @ 2022-02-03 20:07 乡镇做题家 阅读(246) 评论(0) 推荐(0) 编辑
摘要: import reimport requestsurl = 'http:afdfadfas'req = requests.get(url)num = re.findall("<p>Num is:(\d*?)</p>", req.text)list1 = []for i in num: list1.a 阅读全文
posted @ 2022-01-10 16:33 乡镇做题家 阅读(51) 评论(0) 推荐(0) 编辑
摘要: a = 'flag{8ozcvlpxhOonysqewjgfmrO0oporvzikhopyqnufcjwbgeamxds7iuojrpqtfgykOOxlwsbhn0OliOztgfocevbunyxjmkpws6tfhvnpdrqaaOOguzyewjkaibl0abulrfticqwepvxk 阅读全文
posted @ 2022-01-10 16:31 乡镇做题家 阅读(24) 评论(0) 推荐(0) 编辑
摘要: import socket# 创建 socket 对象serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)port = 9999# 绑定端口号serversocket.bind(('192.168.1.138', port) 阅读全文
posted @ 2022-01-10 16:31 乡镇做题家 阅读(57) 评论(0) 推荐(0) 编辑
摘要: import zipfileimport rarfile# from unrar import rarfileif __name__ == '__main__': file = zipfile.ZipFile("flag.zip") # file = rarfile.RarFile("pwd.rar 阅读全文
posted @ 2022-01-10 16:29 乡镇做题家 阅读(226) 评论(0) 推荐(0) 编辑
摘要: import base64import hashlibdef GetMd5(hash): hash1 = hashlib.md5(hash) return hash1.hexdigest()flag2 = ''with open('miwen.txt','r') as f: flag2 = f.re 阅读全文
posted @ 2022-01-10 16:28 乡镇做题家 阅读(40) 评论(0) 推荐(0) 编辑
摘要: """@description: 凯撒密码@time: 2021-12-03@version: python3.9.6"""def CaesarEncode(crypto_str, shift): """ 凯撒加密 :param crypto_str: 要加密的明文 :param shift: 偏移 阅读全文
posted @ 2022-01-10 16:27 乡镇做题家 阅读(314) 评论(0) 推荐(0) 编辑
摘要: pip install socket#导入socket包import socketimport time#定义变量host,porthost = '192.168.1.137'port = 3000#进行socket连接obj = socket.socket()obj.connect((host, 阅读全文
posted @ 2022-01-10 16:25 乡镇做题家 阅读(113) 评论(0) 推荐(0) 编辑
摘要: import pymysqlconnection = pymysql.connect( host='', # 数据库地址 user='', # 数据库用户名 password='', # 数据库密码 db='', # 数据库名称 # charset = 'utf8 -- UTF-8 Unicode' 阅读全文
posted @ 2022-01-10 16:24 乡镇做题家 阅读(215) 评论(0) 推荐(0) 编辑
摘要: pip install xlwings 代码如下:import xlwings as xwfrom datetime import dateimport datetimeimport osapp = xw.App(visible=True, add_book=False)workbook = app 阅读全文
posted @ 2022-01-10 16:23 乡镇做题家 阅读(220) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示