【NLP舆情分析】基于python微博舆情分析可视化系统(flask+pandas+echarts) 视频教程 - 主页布局实现

大家好,我是java1234_小锋老师,最近写了一套【NLP舆情分析】基于python微博舆情分析可视化系统(flask+pandas+echarts)视频教程,持续更新中,计划月底更新完,感谢支持。今天讲解主页布局实现

视频在线地址:

2026版【NLP舆情分析】基于python微博舆情分析可视化系统(flask+pandas+echarts+爬虫) 视频教程 (火爆连载更新中..)_哔哩哔哩_bilibili

课程简介:

本课程采用主流的Python技术栈实现,Mysql8数据库,Flask后端,Pandas数据分析,前端可视化图表采用echarts,以及requests库,snowNLP进行情感分析,词频统计,包括大量的数据统计及分析技巧。

实现了,用户登录,注册,爬取微博帖子和评论信息,进行了热词统计以及舆情分析,以及基于echarts实现了数据可视化,包括微博文章分析,微博IP分析,微博评论分析,微博舆情分析。最后也基于wordcloud库实现了词云图,包括微博内容词云图,微博评论词云图,微博评论用户词云图等功能。

主页布局实现

主页我们分析后发现,每个页面都有很多公共的内容,比如头部信息,左侧菜单,底部信息,这些是不变的。唯一边的就是右侧内容,以及标题。所以我们把公共的内容抽取,放到base.html里面去,然后其他页面模块集成base.html,再去重写内容和标题即可。jinjia模版引擎都支持,我们在flask课程中也讲过。

base.html

<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>{% block title %}首页{% endblock %}</title><link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon"><link rel="stylesheet" href="/static/css/backend-plugin.min.css"><link rel="stylesheet" href="/static/css/backend.css">
</head>
<body class="  ">
<!-- loader Start -->
<div id="loading"><div id="loading-center"></div>
</div>
<!-- loader END -->
<!-- Wrapper Start -->
<div class="wrapper"><div class="iq-sidebar  sidebar-default  "><div class="iq-sidebar-logo d-flex align-items-end justify-content-between"><a href="" class="header-logo"><img src="/static/picture/logo.png" class="img-fluid rounded-normal light-logo" alt="logo"><img src="/static/picture/logo-dark.png" class="img-fluid rounded-normal d-none sidebar-light-img"alt="logo"><span>微博舆情数据分析</span></a><div class="side-menu-bt-sidebar-1"><svg xmlns="http://www.w3.org/2000/svg" class="text-light wrapper-menu" width="30" fill="none"viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M6 18L18 6M6 6l12 12"></path></svg></div></div><div class="data-scrollbar" data-scroll="1"><nav class="iq-sidebar-menu"><ul id="iq-sidebar-toggle" class="side-menu"><li class="active sidebar-layout"><a href="/page/home" class="svg-icon"><i class=""><svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24"stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg></i><span class="ml-2">首页</span></a></li><li class="px-3 pt-3 pb-2 "><span class="text-uppercase small font-weight-bold">舆情分析</span></li><li class=" sidebar-layout"><a href="/page/hotWord" class="svg-icon "><i class=""><svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24"stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg></i><span class="ml-2">微博热词统计</span></a></li><li class=" sidebar-layout"><a href="/page/articleData" class="svg-icon"><i class=""><svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24"stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"></path></svg></i><span class="ml-2">微博舆情分析</span></a></li>
​<li class="px-3 pt-3 pb-2"><span class="text-uppercase small font-weight-bold">数据可视化</span></li><li class=" sidebar-layout"><a href="/page/articleDataAnalysis" class="svg-icon"><i class=""><svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24"stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"></path></svg></i><span class="ml-2">微博文章分析</span></a></li><li class=" sidebar-layout"><a href="/page/ipDataAnalysis" class="svg-icon"><i class=""><svg class="svg-icon" id="iq-user-1-1" xmlns="http://www.w3.org/2000/svg" fill="none"viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></i><span class="ml-2">微博IP分析</span></a></li>
​
​<li class=" sidebar-layout"><a href="/page/commentDataAnalysis" class="svg-icon"><i class=""><svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24"stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"></path></svg></i><span class="ml-2">微博评论分析</span></a></li><li class=" sidebar-layout"><a href="/page/sentimentAnalysis" class="svg-icon"><i class=""><svg xmlns="http://www.w3.org/2000/svg" width="18" fill="none" viewbox="0 0 24 24"stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"></path></svg></i><span class="ml-2">微博舆情分析</span></a></li>
​<li class="px-3 pt-3 pb-2"><span class="text-uppercase small font-weight-bold">词云图</span></li><li class=" sidebar-layout"><a href="/page/articleCloud" class="svg-icon"><i class=""><svg class="svg-icon" id="iq-chart-1" width="18" xmlns="http://www.w3.org/2000/svg"fill="none" viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M8 13v-1m4 1v-3m4 3V8M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"style="stroke-dasharray: 96, 116; stroke-dashoffset: 0;"></path></svg></i><span class="ml-2">微博内容词云图</span></a></li><li class=" sidebar-layout"><a href="/page/commentCloud" class="svg-icon"><i class=""><svg class="svg-icon" id="iq-chart-1" width="18" xmlns="http://www.w3.org/2000/svg"fill="none" viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M8 13v-1m4 1v-3m4 3V8M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"style="stroke-dasharray: 96, 116; stroke-dashoffset: 0;"></path></svg></i><span class="ml-2">微博评论词云图</span></a></li><li class=" sidebar-layout"><a href="/page/commentUserCloud" class="svg-icon"><i class=""><svg class="svg-icon" id="iq-chart-1" width="18" xmlns="http://www.w3.org/2000/svg"fill="none" viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M8 13v-1m4 1v-3m4 3V8M8 21l4-4 4 4M3 4h18M4 4h16v12a1 1 0 01-1 1H5a1 1 0 01-1-1V4z"style="stroke-dasharray: 96, 116; stroke-dashoffset: 0;"></path></svg></i><span class="ml-2">微博评论用户词云图</span></a></li></ul></nav><div class="pt-5 pb-5"></div></div></div><div class="iq-top-navbar"><div class="iq-navbar-custom"><nav class="navbar navbar-expand-lg navbar-light p-0"><div class="side-menu-bt-sidebar"><svg xmlns="http://www.w3.org/2000/svg" class="text-secondary wrapper-menu" width="30" fill="none"viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M4 6h16M4 12h16M4 18h16"></path></svg></div><div class="d-flex align-items-center">
​<button class="navbar-toggler" type="button" data-toggle="collapse"data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"aria-label="Toggle navigation"><svg xmlns="http://www.w3.org/2000/svg" class="text-secondary" width="30" fill="none"viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M4 6h16M4 12h16m-7 6h7"></path></svg></button><div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav ml-auto navbar-list align-items-center">
​<li class="nav-item nav-icon dropdown"><a href="#" class="nav-item nav-icon dropdown-toggle pr-0 search-toggle"id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true"aria-expanded="false">
​<span class="mb-0 ml-2 user-name">当前用户:{{ session['user'][1] }}&nbsp;&nbsp;&nbsp;</span></a><ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton"><li class="dropdown-item  d-flex svg-icon border-top"><svg class="svg-icon mr-0 text-secondary" id="h-05-p" width="20"xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24"stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg><a href="/user/logout">安全退出</a></li></ul></li></ul></div><div class="change-mode"><div class="custom-control custom-switch custom-switch-icon custom-control-inline"><div class="custom-switch-inner"><p class="mb-0"></p><input type="checkbox" class="custom-control-input" id="dark-mode" data-active="true"><label class="custom-control-label" for="dark-mode" data-mode="toggle"><span class="switch-icon-right"><svg xmlns="http://www.w3.org/2000/svg" id="h-moon" height="20" width="20"class="h-6 w-6" fill="none" viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg></span><span class="switch-icon-left"><svg xmlns="http://www.w3.org/2000/svg" id="h-sun" height="20" width="20"class="h-6 w-6" fill="none" viewbox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg></span></label></div></div></div></div></nav></div></div><div class="content-page">{% block content %}{% endblock %}</div>
</div>
<!-- Wrapper End-->
<footer class="iq-footer"><div class="container-fluid"><div class="row"><div class="col-lg-6">
​</div><div class="col-lg-6 text-right"><span class="mr-1">Copyright &copy; 2025 python222 All rights reserved.<a target="_blank"href="http://www.python222.com">Python知识分享网</a></span></div></div></div>
</footer>
<script src="/static/js/backend-bundle.min.js"></script>
<script src="/static/js/customizer.js"></script>
<script src="/static/js/sidebar.js"></script>
<script src="/static/js/flex-tree.min.js"></script>
<script src="/static/js/tree.js"></script>
<script src="/static/js/table-treeview.js"></script>
<script src="/static/js/sweetalert.js"></script>
<script src="/static/js/vector-map-custom.js"></script>
<script src="/static/js/chart-custom.js"></script>
<script src="/static/js/01.js"></script>
<script src="/static/js/02.js"></script>
<script src="/static/js/slider.js"></script>
<script src="/static/js/index.js" type="module"></script>
<script src="/static/js/app.js"></script>
<script src="/static/js/echarts.min.js"></script>
<script src="/static/js/china.js"></script>
​
{% block echarts %}
{% endblock %}
</body>
</html>

index.html

{% extends 'base.html' %}
{% block title %}首页{% endblock %}
{% block content %}<div class="container-fluid"><div class="row"><div class="col-md-12 mb-4 mt-1"><div class="d-flex flex-wrap justify-content-between align-items-center"><h4 class="font-weight-bold">首页</h4>
​</div></div><div class="col-lg-8 col-md-12"><div class="row"><div class="col-md-4"><div class="card"><div class="card-body"><div class="d-flex align-items-center"><div class=""><p class="mb-2 text-secondary">微博文章总量</p><div class="d-flex flex-wrap justify-content-start align-items-center"><h5 class="mb-0 font-weight-bold" id="totalArticle">无数据</h5>
​</div></div></div></div></div></div><div class="col-md-4"><div class="card"><div class="card-body"><div class="d-flex align-items-center"><div class=""><p class="mb-2 text-secondary">最高点赞微博-作者</p><div class="d-flex flex-wrap justify-content-start align-items-center"><h5 class="mb-0 font-weight-bold" id="topAuthor">无数据</h5>
​</div></div></div></div></div></div><div class="col-md-4"><div class="card"><div class="card-body"><div class="d-flex align-items-center"><div class=""><p class="mb-2 text-secondary">微博点赞最多-城市</p><div class="d-flex flex-wrap justify-content-start align-items-center"><h5 class="mb-0 font-weight-bold" id="topRegion">无数据</h5>
​</div></div></div></div></div></div><div class="col-md-12"><div class="card"><div class="card-body"><div class="d-flex justify-content-between align-items-center flex-wrap"><h4 class="font-weight-bold">最近七天微博发布量</h4>
​</div><div id="article7fbl" style="width: 100%;height: 300px" class="custom-chart"></div></div></div></div></div></div><div class="col-lg-4 col-md-8"><div class="card card-block card-stretch card-height"><div class="card-header card-header-border d-flex justify-content-between"><div class="header-title"><h4 class="card-title">微博点赞量Top6</h4></div></div><div class="card-body-list"><ul class="list-style-3 mb-0" id="topArticle">
​</ul></div></div>
​</div><div class="col-lg-4 col-md-6"><div class="card"><div class="card-body"><h4 class="font-weight-bold mb-3">微博类型占比饼状图</h4><div id="articleTypeZb" style="width:100%;height:450px"></div></div></div></div><div class="col-lg-4 col-md-6"><div class="card"><div class="card-body"><h4 class="font-weight-bold mb-3">评论用户名词云图</h4><img style="width:100%" src="/static/comment_user_cloud.jpg" alt=""></div></div></div><div class="col-lg-4 col-md-6"><div class="card"><div class="card-body"><h4 class="font-weight-bold mb-3">评论用户时间占比环形饼状图</h4><div id="commentUserZb" style="width:100%;height:450px"></div></div></div></div></div><!-- Page end  --></div>
{% endblock %}
{% block echarts %}
​
{% endblock %}

page / page.py里加下 主页跳转:

@pb.route('/home')
def home():return render_template('index.html')

从session中获取当前用户信息,显示当前登录的用户名

当前用户:{{ session['user'][1] }}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.pswp.cn/web/90070.shtml
繁体地址,请注明出处:http://hk.pswp.cn/web/90070.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

# 微调需要准备哪些环境配置?

微调需要准备哪些环境配置&#xff1f; 如果没有 GPU&#xff0c;即便是微调较小的大语言模型&#xff08;LLMs&#xff09;&#xff0c;过程也会比较慢。如果你已经有了现成的 GPU&#xff0c;那就可以直接开工了。不过&#xff0c;并不是所有人都能负担得起 GPU—— 这种情况…

ClickHouse物化视图避坑指南:原理、数据迁移与优化

摘要ClickHouse物化视图通过预计算和自动更新机制&#xff0c;显著提升大数据分析查询性能&#xff0c;尤其适合高并发聚合场景。本文将深入解析其技术原理、生产实践中的优化策略&#xff0c;以及数据迁移的实战经验。一、物化视图核心概念ClickHouse的物化视图(Materialized …

Springboot3整合Elasticsearch8(elasticsearch-java)

1、Elasticsearch的JAVA客户端选择 Elasticsearch官方支持的客户端 客户端名称简介使用建议Elasticsearch Java API Client&#xff08;新客户端&#xff09;官方推荐的新客户端&#xff0c;基于 JSON Mapping&#xff08;如 ElasticsearchClient 类&#xff09;&#xff0c;…

OpenCV 官翻8 - 其他算法

文章目录高动态范围成像引言曝光序列源代码示例图像说明结果色调映射图像曝光融合附加资源高级图像拼接 API&#xff08;Stitcher 类&#xff09;目标代码说明相机模型试用指南图像拼接详解 (Python OpenCV >4.0.1)stitching_detailed如何使用背景减除方法目标代码代码解析结…

2025年一区SCI-回旋镖气动椭圆优化算法Boomerang Aerodynamic Ellipse-附Matlab免费代码

引言 本期介绍一种新的元启发式算法——回旋镖气动椭圆优化算法Boomerang Aerodynamic Ellipse Optimizer (BAEO)。该优化器的灵感来自于飞行中的回旋镖的空气动力学行为&#xff0c;明确地建模了释放角和发射力如何塑造其轨迹。于2025年7月最新发表在JCR 1区&#xff0c;中科…

Custom SRP - Custom Render Pipeline

https://catlikecoding.com/unity/tutorials/custom-srp/custom-render-pipeline/ 1. 新建 Render Pipeline 任何内容的渲染&#xff0c;最终都是要由 unity 决定在哪里&#xff0c;什么时候&#xff0c;以哪些参数进行渲染。根据目标效果的复杂程度&#xff0c;决定渲染的过程…

C语言面向对象编程

1.内核通用链表一、什么是 list_head&#xff1f;list_head 是 Linux 内核中自己实现的一种 双向循环链表 的结构&#xff0c;定义在 <linux/list.h> 中。它设计得非常轻巧、灵活&#xff0c;广泛用于内核模块、驱动、进程调度、网络协议栈等。它的关键思想是&#xff1a…

Spring Boot+Redis Zset:三步构建高可靠延迟队列系统

系统设计架构图---------------- ----------------- ---------------- | | | | | | | 生产者 |------>| Redis ZSet |------>| 定时任务消费者 | | (添加延迟任务) | | (延…

MCP vs 传统集成方案:REST API、GraphQL、gRPC的终极对比

MCP vs 传统集成方案&#xff1a;REST API、GraphQL、gRPC的终极对比 &#x1f31f; Hello&#xff0c;我是摘星&#xff01; &#x1f308; 在彩虹般绚烂的技术栈中&#xff0c;我是那个永不停歇的色彩收集者。 &#x1f98b; 每一个优化都是我培育的花朵&#xff0c;每一个特…

SQL语句中锁的使用与优化

一、锁机制简介1.定义在数据库中&#xff0c;除了传统的计算资源&#xff08;如CPU、RAM、I/O等&#xff09;的争用以外&#xff0c;数据也是一种供需要用户共享的资源。如何保证数据并发访问的一致性、有效性是所有数据库必须解决的一个问题&#xff0c;锁冲突也是影响数据库并…

Linux笔记1——简介安装

操作系统给用户一个操作界面&#xff0c;用户通过操作界面使用系统资源Linux内核管理控制硬件&#xff0c;和硬件打交道SCSI&#xff08;盘&#xff09;sd**;第一个*表示磁盘顺序&#xff0c;第二个*表示分区。例如&#xff1a;sda\sdb\sdc,sda1,sda2NVMe&#xff08;盘&#x…

GoLand 部署第一个项目

前言&#xff1a;Go环境部署分为两种模式&#xff0c;一种是基于GOPATH部署&#xff08;老版本&#xff09;&#xff0c;另一种是基于Module部署&#xff08;新版本v1.11开始&#xff09;。GOPATH&#xff1a;需要配置GOPATH路径&#xff0c;将GOPATH目录视为工作目录&#xff…

Mosaic数据增强介绍

1. 核心概念与目标Mosaic 是一种在计算机视觉&#xff08;尤其是目标检测任务&#xff09;中非常流行且强大的数据增强技术。它最早由 Ultralytics 的 Alexey Bochkovskiy 在 YOLOv4 中提出并推广&#xff0c;后来被广泛应用于 YOLOv5, YOLOv7, YOLOv8 等模型以及其他目标检测框…

LINUX 722 逻辑卷快照

逻辑卷快照 lvcreate -L 128M -s -n lv1-snap /dev/vg1/lv1 lvs lvscan mount -o ro /dev/vg1/lv1 /mmt/lv1-snap dmsetup ls --tree 测试 lvs /dev/vg1/lv1-snap dd if/dev/zero of/uc1/test bs1M count40 lvs /dev/vg1/lv1-snap 问题 [rootweb ~]# cd /mnt [rootweb mnt]# m…

Springboot+vue个人健康管理系统的设计与实现

文章目录前言详细视频演示具体实现截图后端框架SpringBoot前端框架Vue持久层框架MyBaits成功系统案例&#xff1a;代码参考数据库源码获取前言 博主介绍:CSDN特邀作者、985高校计算机专业毕业、现任某互联网大厂高级全栈开发工程师、Gitee/掘金/华为云/阿里云/GitHub等平台持续…

数据结构 --栈和队链

一.栈的概念一种特殊的线性表&#xff0c;只能从固定的一端插入和删除元素。栈中元素遵循先进后出的原则。二.模拟实现public class MyStack {public int size;public int[] array;public MyStack(){array new int[10];}private void grow(){array Arrays.copyOf(array,array…

文档处理控件TX Text Control系列教程:使用 C# .NET 将二维码添加到 PDF 文档

PDF 文档通常是合同、发票、证书和报告的最终格式。尽管它们在设计上是静态的&#xff0c;但用户现在希望能够与它们交互、验证信息并直接从这些文件访问数字服务。这时&#xff0c;二维码就变得至关重要。 PDF 文档中的二维码将印刷或数字内容与动态在线体验连接起来。用户只需…

Google Chrome 谷歌浏览器全部版本集合

Google Chrome 谷歌浏览器全部版本集合 Collection of all software versions of Google Chrome. 项目介绍 本项目为Google Chrome谷歌浏览器的全部版本集合&#xff0c;方便大家下载旧版本使用。 因为Gitee项目限制仓库1G大小&#xff0c;所以许多谷歌浏览器版本无法上传。…

论文略读:Towards Safer Large Language Models through Machine Unlearning

ACL 2024大型语言模型&#xff08;LLMs&#xff09;的迅猛发展展现了其在多个领域的巨大潜力&#xff0c;这主要得益于其广泛的预训练知识和出色的泛化能力。然而&#xff0c;当面对问题性提示&#xff08;problematic prompts&#xff09;时&#xff0c;LLMs 仍然容易生成有害…

深度学习 ---参数初始化以及损失函数

深度学习 —参数初始化以及损失函数 文章目录深度学习 ---参数初始化以及损失函数一&#xff0c;参数初始化1.1 固定值初始化1.1.1 全0初始化1.1.2 全1初始化1.3 任意常数初始化1.2 随机初始化一&#xff0c;参数初始化 神经网络的参数初始化是训练深度学习模型的关键步骤之一…