Python 进行数字取证调查

在注册表中分析无线访问热点

以管理员权限开启cmd,输入如下命令来列出每个网络显示出profile guid对网络的描述、网络名和网关的mac地址

代码语言:javascript代码运行次数:0运行复制

reg query "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionNetworkListSignaturesUnmanaged" /s
Python 进行数字取证调查

使用WinReg读取Windows注册表中的内容

连上注册表,使用OpenKey()函数打开相关的键,在循环中依次分析该键下存储的所有网络network profile,其中FirstNetwork网络名和DefaultGateway默认网关的Mac地址的键值打印出来。

代码语言:javascript代码运行次数:0运行复制

#coding=utf-8from winreg import *# 将REG_BINARY值转换成一个实际的Mac地址def val2addr(val):    addr = ""    for ch in val:        addr += ("%02x " % ord(ch))    addr = addr.strip(" ").replace(" ", ":")[0:17]    return addr# 打印网络相关信息def printNets():    net = "/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/NetworkList/Signatures/Unmanaged"    key = OpenKey(HKEY_LOCAL_MACHINE, net)    for i in range(100):        try:            guid = EnumKey(key, i)            netKey = OpenKey(key, str(guid))            (n, addr, t) = EnumValue(netKey, 5)            (n, name, t) = EnumValue(netKey, 4)            macAddr = val2addr(addr)            netName = name            print('[+] ' + netName + '  ' + macAddr)            CloseKey(netKey)        except:            breakif __name__ == "__main__":    printNets()

使用Mechanize把Mac地址传给Wigle

此处增加了对Wigle网站的访问并将Mac地址传递给Wigle来获取经纬度等物理地址信息。

代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8from _winreg import *import mechanizeimport urllibimport reimport urlparseimport osimport optparse# 将REG_BINARY值转换成一个实际的Mac地址def val2addr(val):    addr = ""    for ch in val:        addr += ("%02x " % ord(ch))    addr = addr.strip(" ").replace(" ", ":")[0:17]    return addr# 打印网络相关信息def printNets(username, password):    net = "SOFTWAREMicrosoftWindows NTCurrentVersionNetworkListSignaturesUnmanaged"    key = OpenKey(HKEY_LOCAL_MACHINE, net)    print "[*]Networks You have Joined."    for i in range(100):        try:            guid = EnumKey(key, i)            netKey = OpenKey(key, str(guid))            (n, addr, t) = EnumValue(netKey, 5)            (n, name, t) = EnumValue(netKey, 4)            macAddr = val2addr(addr)            netName = name            print '[+] ' + netName + '  ' + macAddr            wiglePrint(username, password, macAddr)            CloseKey(netKey)        except:            break# 通过wigle查找Mac地址对应的经纬度def wiglePrint(username, password, netid):    browser = mechanize.Browser()    browser.open('http://wigle.net')    reqData = urllib.urlencode({'credential_0': username, 'credential_1': password})    browser.open('https://wigle.net/gps/gps/main/login', reqData)    params = {}    params['netid'] = netid    reqParams = urllib.urlencode(params)    respURL = 'http://wigle.net/gps/gps/main/confirmquery/'    resp = browser.open(respURL, reqParams).read()    mapLat = 'N/A'    mapLon = 'N/A'    rLat = re.findall(r'maplat=.*&', resp)    if rLat:        mapLat = rLat[0].split('&')[0].split('=')[1]    rLon = re.findall(r'maplon=.*&', resp)    if rLon:        mapLon = rLon[0].split    print '[-] Lat: ' + mapLat + ', Lon: ' + mapLondef main():    parser = optparse.OptionParser('usage %prog ' + '-u  -p ')    parser.add_option('-u', dest='username', type='string', help='specify wigle password')    parser.add_option('-p', dest='password', type='string', help='specify wigle username')    (options, args) = parser.parse_args()    username = options.username    password = options.password    if username == None or password == None:        print parser.usage        exit(0)    else:        printNets(username, password)if __name__ == '__main__':    main()

使用OS模块寻找被删除的文件/文件夹:

Windows系统中的回收站是一个专门用来存放被删除文件的特殊文件夹。子目录中的字符串表示的是用户的SID,对应机器里一个唯一的用户账户。

Python 进行数字取证调查

寻找被删除的文件/文件夹的函数:

立即学习“Python免费学习笔记(深入)”;

怪兽AI数字人 怪兽AI数字人

数字人短视频创作,数字人直播,实时驱动数字人

怪兽AI数字人 44 查看详情 怪兽AI数字人 代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8import os# 逐一测试回收站的目录是否存在,并返回第一个找到的回收站目录def returnDir():    dirs=['C:Recycler', 'C:Recycled', 'C:$Recycle.Bin']    for recycleDir in dirs:        if os.path.isdir(recycleDir):            return recycleDir    return None

用Python把SID和用户名关联起来:

可以使用Windows注册表把SID转换成一个准确的用户名。以管理员权限运行cmd并输入命令:

代码语言:javascript代码运行次数:0运行复制

reg query "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileListS-1-5-21-2595130515-3345905091-1839164762-1000" /s

代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8import osimport optparsefrom _winreg import *# 逐一测试回收站的目录是否存在,并返回第一个找到的回收站目录def returnDir():    dirs=['C:Recycler', 'C:Recycled', 'C:$Recycle.Bin']    for recycleDir in dirs:        if os.path.isdir(recycleDir):            return recycleDir    return None# 操作注册表来获取相应目录属主的用户名def sid2user(sid):    try:        key = OpenKey(HKEY_LOCAL_MACHINE, "SOFTWAREMicrosoftWindows NTCurrentVersionProfileList" + '' + sid)        (value, type) = QueryValueEx(key, 'ProfileImagePath')        user = value.split('')[-1]        return user    except:        return siddef findRecycled(recycleDir):    dirList = os.listdir(recycleDir)    for sid in dirList:        files = os.listdir(recycleDir + sid)        user = sid2user(sid)        print '[*] Listing Files For User: ' + str(user)        for file in files:            print '[+] Found File: ' + str(file)def main():    recycledDir = returnDir()    findRecycled(recycledDir)if __name__ == '__main__':    main()

使用PyPDF解析PDF文件中的元数据

pyPdf是管理PDF文档的第三方Python库,在Kali中是已经默认安装了的就不需要再去下载安装。

代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8import pyPdfimport optparsefrom pyPdf import PdfFileReader# 使用getDocumentInfo()函数提取PDF文档所有的元数据def printMeta(fileName):    pdfFile = PdfFileReader(file(fileName, 'rb'))    docInfo = pdfFile.getDocumentInfo()    print "[*] PDF MeataData For: " + str(fileName)    for meraItem in docInfo:        print "[+] " + meraItem + ": " + docInfo[meraItem]def main():    parser = optparse.OptionParser("[*]Usage: python pdfread.py -F ")    parser.add_option('-F', dest='fileName', type='string', help='specify PDF file name')    (options, args) = parser.parse_args()    fileName = options.fileName    if fileName == None:        print parser.usage        exit(0)    else:        printMeta(fileName)if __name__ == '__main__':    main()

用BeautifulSoup下载图片代码语言:javascript代码运行次数:0运行复制

import urllib2from bs4 import BeautifulSoup as BSfrom os.path import basenamefrom urlparse import urlsplit# 通过BeautifulSoup查找URL中所有的img标签def findImages(url):    print '[+] Finding images on ' + url    urlContent = urllib2.urlopen(url).read()    soup = BS(urlContent, 'lxml')    imgTags = soup.findAll('img')    return imgTags# 通过img标签的src属性的值来获取图片URL下载图片def downloadImage(imgTag):    try:        print '[+] Dowloading image...'        imgSrc = imgTag['src']        imgContent = urllib2.urlopen(imgSrc).read()        imgFileName = basename(urlsplit(imgSrc)[2])        imgFile = open(imgFileName, 'wb')        imgFile.write(imgContent)        imgFile.close()        return imgFileName    except:        return ' '

 用Python的图像处理库读取图片中的Exif元数据

这里查看下载图片的元数据中是否含有Exif标签“GPSInfo”,若存在则输出存在信息。

代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8import optparsefrom PIL import Imagefrom PIL.ExifTags import TAGSimport urllib2from bs4 import BeautifulSoup as BSfrom os.path import basenamefrom urlparse import urlsplit# 通过BeautifulSoup查找URL中所有的img标签def findImages(url):    print '[+] Finding images on ' + url    urlContent = urllib2.urlopen(url).read()    soup = BS(urlContent, 'lxml')    imgTags = soup.findAll('img')    return imgTags# 通过img标签的src属性的值来获取图片URL下载图片def downloadImage(imgTag):    try:        print '[+] Dowloading image...'        imgSrc = imgTag['src']        imgContent = urllib2.urlopen(imgSrc).read()        imgFileName = basename(urlsplit(imgSrc)[2])        imgFile = open(imgFileName, 'wb')        imgFile.write(imgContent)        imgFile.close()        return imgFileName    except:        return ' '# 获取图像文件的元数据,并寻找是否存在Exif标签“GPSInfo”def testForExif(imgFileName):    try:        exifData = {}        imgFile = Image.open(imgFileName)        info = imgFile._getexif()        if info:            for (tag, value) in info.items():                decoded = TAGS.get(tag, tag)                exifData[decoded] = value            exifGPS = exifData['GPSInfo']            if exifGPS:                print '[*] ' + imgFileName + ' contains GPS MetaData'    except:        passdef main():    parser = optparse.OptionParser('[*]Usage: python Exif.py -u ')    parser.add_option('-u', dest='url', type='string', help='specify url address')    (options, args) = parser.parse_args()    url = options.url    if url == None:        print parser.usage        exit(0)    else:        imgTags = findImages(url)        for imgTag in imgTags:            imgFileName = downloadImage(imgTag)            testForExif(imgFileName)if __name__ == '__main__':    main()

使用Python和SQLite3自动查询Skype的数据库代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8import sqlite3import optparseimport os# 连接main.db数据库,申请游标,执行SQL语句并返回结果def printProfile(skypeDB):    conn = sqlite3.connect(skypeDB)    c = conn.cursor()    c.execute("SELECT fullname, skypename, city, country, datetime(profile_timestamp,'unixepoch') FROM Accounts;")    for row in c:        print '[*] -- Found Account --'        print '[+] User           : '+str(row[0])        print '[+] Skype Username : '+str(row[1])        print '[+] Location       : '+str(row[2])+','+str(row[3])        print '[+] Profile Date   : '+str(row[4])# 获取联系人的相关信息def printContacts(skypeDB):    conn = sqlite3.connect(skypeDB)    c = conn.cursor()    c.execute("SELECT displayname, skypename, city, country, phone_mobile, birthday FROM Contacts;")    for row in c:        print '[*] -- Found Contact --'        print '[+] User           : ' + str(row[0])        print '[+] Skype Username : ' + str(row[1])        if str(row[2]) != '' and str(row[2]) != 'None':            print '[+] Location       : ' + str(row[2]) + ',' + str(row[3])        if str(row[4]) != 'None':            print '[+] Mobile Number  : ' + str(row[4])        if str(row[5]) != 'None':            print '[+] Birthday       : ' + str(row[5])def printCallLog(skypeDB):    conn = sqlite3.connect(skypeDB)    c = conn.cursor()    c.execute("SELECT datetime(begin_timestamp,'unixepoch'), identity FROM calls, conversations WHERE calls.conv_dbid = conversations.id;")    print '[*] -- Found Calls --'    for row in c:        print '[+] Time: ' + str(row[0]) + ' | Partner: ' + str(row[1])def printMessages(skypeDB):    conn = sqlite3.connect(skypeDB)    c = conn.cursor()    c.execute("SELECT datetime(timestamp,'unixepoch'), dialog_partner, author, body_xml FROM Messages;")    print '[*] -- Found Messages --'    for row in c:        try:            if 'partlist' not in str(row[3]):                if str(row[1]) != str(row[2]):                    msgDirection = 'To ' + str(row[1]) + ': '                else:                    msgDirection = 'From ' + str(row[2]) + ' : '                print 'Time: ' + str(row[0]) + ' ' + msgDirection + str(row[3])        except:            passdef main():    parser = optparse.OptionParser("[*]Usage: python skype.py -p  ")    parser.add_option('-p', dest='pathName', type='string', help='specify skype profile path')    (options, args) = parser.parse_args()    pathName = options.pathName    if pathName == None:        print parser.usage        exit(0)    elif os.path.isdir(pathName) == False:        print '[!] Path Does Not Exist: ' + pathName        exit(0)    else:        skypeDB = os.path.join(pathName, 'main.db')        if os.path.isfile(skypeDB):            printProfile(skypeDB)            printContacts(skypeDB)            printCallLog(skypeDB)            printMessages(skypeDB)        else:            print '[!] Skype Database ' + 'does not exist: ' + skpeDBif __name__ == '__main__':    main()

 用Python解析火狐浏览器的SQLite3数据库

主要关注文件:cookie.sqlite、places.sqlite、downloads.sqlite

代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8import reimport optparseimport osimport sqlite3# 解析打印downloads.sqlite文件的内容,输出浏览器下载的相关信息def printDownloads(downloadDB):    conn = sqlite3.connect(downloadDB)    c = conn.cursor()    c.execute('SELECT name, source, datetime(endTime/1000000, 'unixepoch') FROM moz_downloads;')    print '[*] --- Files Downloaded --- '    for row in c:        print '[+] File: ' + str(row[0]) + ' from source: ' + str(row[1]) + ' at: ' + str(row[2])# 解析打印cookies.sqlite文件的内容,输出cookie相关信息def printCookies(cookiesDB):    try:        conn = sqlite3.connect(cookiesDB)        c = conn.cursor()        c.execute('SELECT host, name, value FROM moz_cookies')        print '[*] -- Found Cookies --'        for row in c:            host = str(row[0])            name = str(row[1])            value = str(row[2])            print '[+] Host: ' + host + ', Cookie: ' + name + ', Value: ' + value    except Exception, e:        if 'encrypted' in str(e):            print '[*] Error reading your cookies database.'            print '[*] Upgrade your Python-Sqlite3 Library'# 解析打印places.sqlite文件的内容,输出历史记录def printHistory(placesDB):    try:        conn = sqlite3.connect(placesDB)        c = conn.cursor()        c.execute("select url, datetime(visit_date/1000000, 'unixepoch') from moz_places, moz_historyvisits where visit_count > 0 and moz_places.id==moz_historyvisits.place_id;")        print '[*] -- Found History --'        for row in c:            url = str(row[0])            date = str(row[1])            print '[+] ' + date + ' - Visited: ' + url    except Exception, e:        if 'encrypted' in str(e):            print '[*] Error reading your places database.'            print '[*] Upgrade your Python-Sqlite3 Library'            exit(0)# 解析打印places.sqlite文件的内容,输出百度的搜索记录def printBaidu(placesDB):    conn = sqlite3.connect(placesDB)    c = conn.cursor()    c.execute("select url, datetime(visit_date/1000000, 'unixepoch') from moz_places, moz_historyvisits where visit_count > 0 and moz_places.id==moz_historyvisits.place_id;")    print '[*] -- Found Baidu --'    for row in c:        url = str(row[0])        date = str(row[1])        if 'baidu' in url.lower():            r = re.findall(r'wd=.*?&', url)            if r:                search=r[0].split('&')[0]                search=search.replace('wd=', '').replace('+', ' ')                print '[+] '+date+' - Searched For: ' + searchdef main():    parser = optparse.OptionParser("[*]Usage: firefoxParse.py -p  ")    parser.add_option('-p', dest='pathName', type='string', help='specify skype profile path')    (options, args) = parser.parse_args()    pathName = options.pathName    if pathName == None:        print parser.usage        exit(0)    elif os.path.isdir(pathName) == False:        print '[!] Path Does Not Exist: ' + pathName        exit(0)    else:        downloadDB = os.path.join(pathName, 'downloads.sqlite')        if os.path.isfile(downloadDB):            printDownloads(downloadDB)        else:            print '[!] Downloads Db does not exist: '+downloadDB        cookiesDB = os.path.join(pathName, 'cookies.sqlite')        if os.path.isfile(cookiesDB):            pass            printCookies(cookiesDB)        else:            print '[!] Cookies Db does not exist:' + cookiesDB        placesDB = os.path.join(pathName, 'places.sqlite')        if os.path.isfile(placesDB):            printHistory(placesDB)            printBaidu(placesDB)        else:            print '[!] PlacesDb does not exist: ' + placesDBif __name__ == '__main__':    main()

 用python调查iTunes手机备份代码语言:javascript代码运行次数:0运行复制

#!/usr/bin/python#coding=utf-8import osimport sqlite3import optparsedef isMessageTable(iphoneDB):    try:        conn = sqlite3.connect(iphoneDB)        c = conn.cursor()        c.execute('SELECT tbl_name FROM sqlite_master WHERE type=="table";')        for row in c:            if 'message' in str(row):            return True    except:            return Falsedef printMessage(msgDB):    try:        conn = sqlite3.connect(msgDB)        c = conn.cursor()        c.execute('select datetime(date,'unixepoch'), address, text from message WHERE address>0;')        for row in c:            date = str(row[0])            addr = str(row[1])            text = row[2]            print '[+] Date: '+date+', Addr: '+addr + ' Message: ' + text    except:        passdef main():    parser = optparse.OptionParser("[*]Usage: python iphoneParse.py -p  ")    parser.add_option('-p', dest='pathName', type='string',help='specify skype profile path')    (options, args) = parser.parse_args()    pathName = options.pathName    if pathName == None:        print parser.usage        exit(0)    else:        dirList = os.listdir(pathName)        for fileName in dirList:            iphoneDB = os.path.join(pathName, fileName)            if isMessageTable(iphoneDB):                try:                    print '[*] --- Found Messages ---'                    printMessage(iphoneDB)                except:                    passif __name__ == '__main__':    main()

以上就是Python 进行数字取证调查的详细内容,更多请关注创想鸟其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/408043.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
男子高铁上亲陌生女孩称:“她还这么小有什么关系”
上一篇 2025年11月6日 22:08:18
三星因侵犯Netlist专利被要求赔付1.18亿美元
下一篇 2025年11月6日 22:08:22

相关推荐

  • 修复Django电商项目中AJAX过滤产品列表图片不显示问题

    在Django电商项目中,当使用AJAX动态加载过滤后的产品列表时,常遇到图片无法正常显示的问题。这通常是由于前端模板中图片加载方式(如data-setbg属性结合JavaScript库)与AJAX动态内容更新机制不兼容所致。解决方案是直接在AJAX返回的HTML中使用标准的标签来渲染图片,确保浏览…

    2026年5月10日
    000
  • Matplotlib 地图中多类型图例的创建与优化

    Matplotlib 地图中多类型图例的创建与优化Matplotlib 地图中多类型图例的创建与优化Matplotlib 地图中多类型图例的创建与优化Matplotlib 地图中多类型图例的创建与优化

    本教程旨在解决matplotlib地图可视化中,如何在一个图例中同时展示颜色块(如区域分类)和自定义标记(如特定兴趣点)的问题。文章详细介绍了当传统`patch`对象无法正确显示标记时,如何利用`matplotlib.lines.line2d`创建标记图例句柄,并将其与颜色块图例句柄合并,从而生成一…

    2026年5月10日 用户投稿
    100
  • Golang JSON序列化:控制敏感字段暴露的最佳实践

    本教程探讨golang中如何高效控制结构体字段在json序列化时的可见性。当需要将包含敏感信息的结构体数组转换为json响应时,通过利用`encoding/json`包提供的结构体标签,特别是`json:”-“`,可以轻松实现对特定字段的忽略,从而避免敏感数据泄露,确保api…

    2026年5月10日
    000
  • 利用海象运算符简化条件赋值:Python教程与最佳实践

    本文旨在探讨Python中海象运算符(:=)在条件赋值场景下的应用。通过对比传统if/else语句与海象运算符,以及条件表达式,分析海象运算符在简化代码、提高可读性方面的优势与局限性。并通过具体示例,展示如何在列表推导式等场景下合理使用海象运算符,同时强调其潜在的复杂性及替代方案,帮助开发者更好地掌…

    2026年5月10日
    100
  • 怎么在PHP代码中实现图片上传功能_PHP图片上传功能实现与安全处理教程

    首先创建含enctype的HTML表单,再用PHP接收文件,检查目录、移动临时文件,验证类型与大小,生成唯一文件名,并调整php.ini限制以确保上传成功。 如果您尝试在PHP项目中添加图片上传功能,但服务器无法正确接收或保存文件,则可能是由于表单配置、文件处理逻辑或安全限制的问题。以下是实现该功能…

    2026年5月10日
    100
  • 比特币新手教程 比特币交易平台有哪些

    比特币是一种去中心化的数字货币,基于区块链技术实现点对点交易,具有匿名性、有限发行和不可篡改等特点;新手可通过交易所购买,P2P交易获得比特币,常用平台包括Binance、OKX和Huobi;交易流程包括注册账户、实名认证、绑定支付方式、充值法币并下单购买,可选择市价单或限价单;比特币存储方式有交易…

    2026年5月10日
    000
  • c++中的SFINAE技术是什么_c++模板编程中的SFINAE原理与应用

    SFINAE 是“替换失败不是错误”的原则,指模板实例化时若参数替换导致错误,只要存在其他合法候选,编译器不报错而是继续重载决议。它用于条件启用模板、类型检测等场景,如通过 decltype 或 enable_if 控制函数重载,实现类型特征判断。尽管 C++20 引入 Concepts 简化了部分…

    2026年5月10日
    000
  • Go语言mgo查询构建:深入理解bson.M与日期范围查询的正确实践

    本文旨在解决go语言mgo库中构建复杂查询时,特别是涉及嵌套`bson.m`和日期范围筛选的常见错误。我们将深入剖析`bson.m`的类型特性,解释为何直接索引`interface{}`会导致“invalid operation”错误,并提供一种推荐的、结构清晰的代码重构方案,以确保查询条件能够正确…

    2026年5月10日
    100
  • vscode上怎么运行html_vscode上运行html步骤【指南】

    首先保存文件为.html格式,再通过浏览器或Live Server插件打开预览;推荐安装Live Server实现本地服务器运行与实时刷新,提升开发体验。 在 VS Code 上运行 HTML 文件并不需要复杂的配置,只需几个简单步骤即可预览页面效果。VS Code 本身是一个代码编辑器,不直接运行…

    2026年5月10日
    100
  • RichHandler与Rich Progress集成:解决显示冲突的教程

    在使用rich库的`richhandler`进行日志输出并同时使用`progress`组件时,可能会遇到显示错乱或溢出问题。这通常是由于为`richhandler`和`progress`分别创建了独立的`console`实例导致的。解决方案是确保日志处理器和进度条组件共享同一个`console`实例…

    2026年5月10日
    000
  • 修复点击时按钮抖动:CSS垂直对齐实践

    本文探讨了在Web开发中,交互式按钮(如播放/暂停按钮)在点击时发生意外垂直位移的问题。通过分析CSS样式变化对元素布局的影响,我们发现这是由于按钮不同状态下的边框样式和内边距改变,以及默认的垂直对齐行为共同作用所致。核心解决方案是利用CSS的vertical-align属性,将其设置为middle…

    2026年5月10日
    000
  • Golang goroutine与channel调试技巧

    使用go run -race检测数据竞争,结合runtime.NumGoroutine监控协程数量,通过pprof分析阻塞调用栈,利用select超时避免永久阻塞,有效排查goroutine泄漏、死锁和数据竞争问题。 Go语言的goroutine和channel是并发编程的核心,但它们也带来了调试上…

    2026年5月10日
    000
  • 《魔兽世界》将于6月11日开启国服回归技术测试

    《魔兽世界》将于6月11日开启国服回归技术测试《魔兽世界》将于6月11日开启国服回归技术测试《魔兽世界》将于6月11日开启国服回归技术测试《魔兽世界》将于6月11日开启国服回归技术测试

    《%ign%ignore_a_1%re_a_1%》官方宣布,将于6月11日开启国服回归技术测试,时间为7天,并称可以在6月内正式开服,玩家们可以访问官网下载战网客户端并预下载“巫妖王之怒”客户端,技术测试详情见下图。 WordAi WordAI是一个AI驱动的内容重写平台 53 查看详情 以上就是《…

    2026年5月10日 用户投稿
    200
  • 使用 Jupyter Notebook 进行探索性数据分析

    Jupyter Notebook通过单元格实现代码与Markdown结合,支持数据导入(pandas)、清洗(fillna)、探索(matplotlib/seaborn可视化)、统计分析(describe/corr)和特征工程,便于记录与分享分析过程。 Jupyter Notebook 是进行探索性…

    2026年5月10日
    000
  • 如何在HTML中插入表单元素_HTML表单控件与输入类型使用指南

    HTML表单通过标签构建,包含action和method属性定义数据提交目标与方式,常用input类型如text、password、email等适配不同输入需求,配合label、required、placeholder提升可用性,结合textarea、select、button等控件实现完整交互,是…

    2026年5月10日
    000
  • 前端缓存策略与JavaScript存储管理

    根据数据特性选择合适的存储方式并制定清晰的读写与清理逻辑,能显著提升前端性能;合理运用Cookie、localStorage、sessionStorage、IndexedDB及Cache API,结合缓存策略与定期清理机制,可在保证用户体验的同时避免安全与性能隐患。 前端缓存和JavaScript存…

    2026年5月10日
    100
  • HTML5网页如何实现手势操作 HTML5网页移动端交互的处理技巧

    首先利用原生touch事件实现滑动判断,再通过preventDefault解决滚动冲突,接着引入Hammer.js处理复杂手势,最后通过优化点击区域、避免事件冲突和增加视觉反馈提升体验。 在移动端浏览器中,HTML5网页可以通过触摸事件实现手势操作,提升用户体验。虽然原生JavaScript提供了基…

    2026年5月10日
    000
  • 创建指定大小并填充特定数据的Golang文件教程

    本文将介绍如何使用Golang创建一个指定大小的文件,并用特定数据填充它。我们将使用 `os` 包提供的函数来创建和截断文件,从而实现快速生成大文件的目的。示例代码展示了如何创建一个10MB的文件,并将其填充为全零数据。掌握这些方法,可以方便地在例如日志系统或磁盘队列等场景中,预先创建测试文件或初始…

    2026年5月10日
    000
  • Python命令怎样使用profile分析脚本性能 Python命令性能分析的基础教程

    使用Python的cProfile模块分析脚本性能最直接的方式是通过命令行执行python -m cProfile your_script.py,它会输出每个函数的调用次数、总耗时、累积耗时等关键指标,帮助定位性能瓶颈;为进一步分析,可将结果保存为文件python -m cProfile -o ou…

    2026年5月10日
    000
  • 使用 WebCodecs VideoDecoder 实现精确逐帧回退

    本文档旨在解决在使用 WebCodecs VideoDecoder 进行视频解码时,实现精确逐帧回退的问题。通过比较帧的时间戳与目标帧的时间戳,可以避免渲染中间帧,从而提高用户体验。本文将提供详细的解决方案和示例代码,帮助开发者实现精确的视频帧控制。 在使用 WebCodecs VideoDecod…

    2026年5月10日
    000

发表回复

登录后才能评论
关注微信