python实现可视化大屏(django+pyechars)

news2024/10/5 16:30:47

1.实现效果图

2.对数据库进行迁移

python manage.py makemigrations

python manage.py migrate

3.登录页面

{% load static%}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>登录</title>
    <style>
        /* 清除浏览器默认边距,
使边框和内边距的值包含在元素的width和height内 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 使用flex布局,让内容垂直和水平居中 */

section {
    /* 相对定位 */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* linear-gradient() 函数用于创建一个表示两种或多种颜色线性渐变的图片 */
    background: linear-gradient(to bottom, #f1f4f9, #dff1ff);
}

/* 背景颜色 */

section .color {
    /* 绝对定位 */
    position: absolute;
    /* 使用filter(滤镜) 属性,给图像设置高斯模糊*/
    filter: blur(200px);
}

/* :nth-child(n) 选择器匹配父元素中的第 n 个子元素 */

section .color:nth-child(1) {
    top: -350px;
    width: 600px;
    height: 600px;
    background: #ff359b;
}

section .color:nth-child(2) {
    bottom: -150px;
    left: 100px;
    width: 500px;
    height: 500px;
    background: #fffd87;
}

section .color:nth-child(3) {
    bottom: 50px;
    right: 100px;
    width: 500px;
    height: 500px;
    background: #00d2ff;
}

.box {
    position: relative;
}

/* 背景圆样式 */

.box .circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation-delay: calc(var(--x) * -1s);
}


@keyframes animate {
    0%, 100%, {
        transform: translateY(-50px);
    }
    50% {
        transform: translateY(50px);
    }
}

.box .circle:nth-child(1) {
    top: -50px;
    right: -60px;
    width: 100px;
    height: 100px;
}

.box .circle:nth-child(2) {
    top: 150px;
    left: -100px;
    width: 120px;
    height: 120px;
    z-index: 2;
}

.box .circle:nth-child(3) {
    bottom: 50px;
    right: -60px;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.box .circle:nth-child(4) {
    bottom: -80px;
    left: 100px;
    width: 60px;
    height: 60px;
}

.box .circle:nth-child(5) {
    top: -80px;
    left: 140px;
    width: 60px;
    height: 60px;
}

/* 登录框样式 */

.container {
    position: relative;
    width: 400px;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 50px;
}


.form h2 {
    position: relative;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 5px;
    margin-bottom: 30px;
    cursor: pointer;
}

/* 登录标题的下划线样式 */

.form h2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0px;
    height: 3px;
    background: #fff;
    transition: 0.5s;
}

.form h2:hover:before {
    width: 53px;
}

.form .inputBox {
    width: 100%;
    margin-top: 20px;
}


.form .inputBox input {
    width: 100%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border: none;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form .inputBox input::placeholder {
    color: #fff;
}



.form .inputBox input[type="submit"] {
    background: #fff;
    color: #666;
    max-width: 100px;
    margin-bottom: 20px;
    font-weight: 600;
    cursor: pointer;
}

.forget {
    margin-top: 6px;
    color: #fff;
    letter-spacing: 1px;
}

.forget a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
    </style>
</head>

<body>
    <section>
 
        <div class="color"></div>
        <div class="color"></div>
        <div class="color"></div>
        <div class="box">
     
            <div class="circle" style="--x:0"></div>
            <div class="circle" style="--x:1"></div>
            <div class="circle" style="--x:2"></div>
            <div class="circle" style="--x:3"></div>
            <div class="circle" style="--x:4"></div>
    
            <div class="container">
                <div class="form">
                    <h2>登录页面</h2>
                    <form action="{% url 'pic:login' %}" method="post">
                        {% csrf_token %}
                        <div class="inputBox">
                            <input type="text" placeholder="姓名" name="username">

                        </div>
                        <div class="inputBox">
                            <input type="password" placeholder="密码" name="password">

                        </div>
                        <div class="inputBox">
                            <input type="submit" value="登录">
                        </div>


                    </form>
                </div>
            </div>
        </div>
    </section>
</body>

</html>

4.设置路由

主路由

子路由

5.登录接口完整代码

def login(request):
    if request.method == "GET":
        return render(request, 'login.html')

    if request.method == "POST":
        username = request.POST.get("username")
        password = request.POST.get("password")
        print(username, password)
        try:
            # 使用 Django 自带的 authenticate 方法验证用户身份
            user = authenticate(request, username=username, password=password)
            if user:
                request.session["user"] = user.pk
                return redirect('pic:page')
            else:
                return redirect('pic:login')

        except User.DoesNotExist:
            messages.add_message(request, messages.WARNING, "用户名或密码错误!")
            return render(request, "login.html", {})

6.其他接口的完整代码


def line_1(request):
    area_color_js = (
        "new echarts.graphic.LinearGradient(0, 0, 0, 1, "
        "[{offset: 0, color: '#eb64fb'}, {offset: 1, color: '#3fbbff0d'}], false)"
    )
    l1 = (
        Line()
            .add_xaxis(xaxis_data=data['日期'].dt.strftime('%Y-%m-%d').tolist())
            .add_yaxis(
            series_name="涨跌幅",
            y_axis=data['涨跌幅'].tolist(),
            symbol_size=8,
            is_hover_animation=False,
            label_opts=opts.LabelOpts(is_show=True),
            linestyle_opts=opts.LineStyleOpts(width=1.5, color='#D14A61'),
            is_smooth=True,
            areastyle_opts=opts.AreaStyleOpts(color=JsCode(area_color_js), opacity=1),
        )
            .set_global_opts(
            title_opts=opts.TitleOpts(
                title="涨跌幅及涨跌额趋势", pos_left="center",
                title_textstyle_opts=opts.TextStyleOpts(color='#ededed')
            ),
            tooltip_opts=opts.TooltipOpts(trigger="axis"),
            axispointer_opts=opts.AxisPointerOpts(
                is_show=True, link=[{"xAxisIndex": "all"}]
            ),
            datazoom_opts=[
                opts.DataZoomOpts(
                    is_show=True,
                    is_realtime=True,
                    start_value=30,
                    end_value=70,
                    xaxis_index=[0, 1],
                )
            ],
            xaxis_opts=opts.AxisOpts(
                type_="category",
                boundary_gap=False,
                axisline_opts=opts.AxisLineOpts(is_on_zero=True, linestyle_opts=opts.LineStyleOpts(color='#FFF')),
                axislabel_opts=opts.LabelOpts(color='#FFF')
            ),
            yaxis_opts=opts.AxisOpts(name="幅度", axislabel_opts=opts.LabelOpts(color='#FFF'),
                                     axisline_opts=opts.AxisLineOpts(linestyle_opts=opts.LineStyleOpts(color='#fff'))),
            legend_opts=opts.LegendOpts(pos_left="center", pos_top='6%', orient='horizontal', is_show=True,
                                        textstyle_opts=opts.TextStyleOpts(color='#ffffff')),
            toolbox_opts=opts.ToolboxOpts(
                is_show=True,
                feature={
                    "dataZoom": {"yAxisIndex": "none"},
                    "restore": {},
                    "saveAsImage": {},
                },
            ),
        )
    )

    l2 = (
        Line()
            .add_xaxis(xaxis_data=data['日期'].dt.strftime('%Y-%m-%d').tolist())
            .add_yaxis(
            series_name="涨跌额",
            y_axis=data['涨跌额'].tolist(),
            xaxis_index=1,
            yaxis_index=1,
            symbol_size=8,
            is_hover_animation=False,
            label_opts=opts.LabelOpts(is_show=True, color="#6E9EF1", position='bottom'),
            linestyle_opts=opts.LineStyleOpts(width=1.5, color="#6E9EF1"),
            is_smooth=True,
            areastyle_opts=opts.AreaStyleOpts(color=JsCode(area_color_js), opacity=1),
        )
            .set_global_opts(
            axispointer_opts=opts.AxisPointerOpts(
                is_show=True, link=[{"xAxisIndex": "all"}]
            ),
            tooltip_opts=opts.TooltipOpts(trigger="axis"),
            xaxis_opts=opts.AxisOpts(
                grid_index=1,
                type_="category",
                boundary_gap=False,
                axisline_opts=opts.AxisLineOpts(is_on_zero=True, linestyle_opts=opts.LineStyleOpts(color='#FFF')),
                position="top",
                axislabel_opts=opts.LabelOpts(color='#FFF'),
            ),
            datazoom_opts=[
                opts.DataZoomOpts(
                    is_realtime=True,
                    type_="inside",
                    start_value=30,
                    end_value=70,
                    xaxis_index=[0, 1],
                )
            ],
            yaxis_opts=opts.AxisOpts(is_inverse=True, name="额度", axislabel_opts=opts.LabelOpts(color='#FFF'),
                                     axisline_opts=opts.AxisLineOpts(linestyle_opts=opts.LineStyleOpts(color='#fff'))),
            legend_opts=opts.LegendOpts(pos_left="center", pos_top='9%',
                                        textstyle_opts=opts.TextStyleOpts(color='#ffffff')),
        )
    )
    c = (
        Grid(init_opts=opts.InitOpts(width="540px", height="710px", bg_color='#0256B6'))
            .add(chart=l1, grid_opts=opts.GridOpts(pos_left=50, pos_right=50, height="35%"))
            .add(
            chart=l2,
            grid_opts=opts.GridOpts(pos_left=50, pos_right=50, pos_top="55%", height="35%")

        )
    )
    # return HttpResponse(c.render_embed())
    return c


def pie_1(request):
    # 转换日期列为日期时间格式并排序
    data['日期'] = pd.to_datetime(data['日期'])
    data.sort_values(by='日期', inplace=True)

    # 将日期列转换为年月格式
    data['年月'] = data['日期'].dt.to_period('M').astype(str)

    # 将成交量列除以10000
    data['成交量'] = round(data['成交量'] / 10000, 2)

    # 按年月分组,并计算平均成交量
    grouped_data = data.groupby('年月', as_index=False).agg({'成交量': 'mean'})

    tl = Timeline(init_opts=opts.InitOpts(width='450px', height='710px', bg_color='#0256B6'))
    for year in range(2023, 2025):
        # 获取当前年份的数据
        current_year_data = grouped_data[grouped_data['年月'].str.startswith(str(year))]

        pie = (
            Pie(init_opts=opts.InitOpts(bg_color='#0256B6'))
                .add(
                "商家A",
                [list(z) for z in zip(current_year_data['年月'], current_year_data['成交量'].round(2))],
                rosetype="radius",
                radius=["30%", "55%"],
            )
                .set_global_opts(title_opts=opts.TitleOpts(title="{}年成交量(万)".format(year),
                                                           title_textstyle_opts=opts.TextStyleOpts(color='#FFF'),
                                                           pos_top='top', pos_right='center'),
                                 legend_opts=opts.LegendOpts(pos_top='10%',
                                                             textstyle_opts=opts.TextStyleOpts(color='#FFF')))
        )
        pie.set_colors(
            ["#91CC75", "#EE6666", "#EEC85B", "#64B5CD", "#FF69B4", "#BA55D3", "#CD5C5C", "#FFA500",
             "#40E0D0"])
        tl.add_schema(
            play_interval=1500,  # 表示播放的速度(跳动的间隔),单位毫秒(ms)
            is_auto_play=True,  # 设置自动播放
            # is_timeline_show=False,  # 不展示时间组件的轴
            pos_bottom='5%',
            is_loop_play=True,  # 是否循环播放
            width='300px',
            pos_left='center',
            label_opts=opts.LabelOpts(color='#FFF'),
        )
        tl.add(pie, "{}年".format(year))

    return tl


def heatmap_1(request):
    # 转换日期列为日期时间格式并排序
    data['日期'] = pd.to_datetime(data['日期'])
    data.sort_values(by='日期', inplace=True)
    # 创建年月列
    data['年月'] = data['日期'].dt.to_period('M').astype(str)  # 这将把日期转换为年月格式,例如 2024-03
    # 按年月分组
    grouped_data = data.groupby('年月')

    # 计算每个月的平均交易量(除以1000000以便缩小范围)
    avg = round(grouped_data['成交额'].mean() / 10000000, 2)
    value = [[i, j, avg[i]] for i in range(len(grouped_data['年月'])) for j in range(1)]
    # 创建热力图
    heatmap = (
        HeatMap(init_opts=opts.InitOpts(height='200px', width='300px', bg_color='#0256B6'))
            .add_xaxis(avg.index.tolist())
            .add_yaxis("", [''], value,
                       label_opts=opts.LabelOpts(is_show=True, color='#FFF', position='inside', font_size=10))
            .set_global_opts(
            visualmap_opts=opts.VisualMapOpts(
                min_=min(avg.values.tolist()),
                max_=max(avg.values.tolist()),
                range_text=["High", "Low"],
                textstyle_opts=opts.TextStyleOpts(color='#EDEDED'),
                orient="vertical",
                pos_left="left",
                item_height=280,
                item_width=10,
                pos_bottom='20px'
            ),
            xaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(color='#FFF'), is_show=False),
            yaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(color='#FFF'), is_show=False),

        )
    )
    return heatmap


def scatter_1(request):
    # 转换日期列为日期时间格式并排序
    data['日期'] = pd.to_datetime(data['日期'])
    data.sort_values(by='日期', inplace=True)
    # 创建年月列
    data['年月'] = data['日期'].dt.to_period('M').astype(str)  # 这将把日期转换为年月格式,例如 2024-03
    # 按年月分组并计算每月的最高和最低平均值
    grouped_data = data.groupby('年月', as_index=False).agg({'最高': 'mean', '最低': 'mean'})
    # 将平均值转换为万美元
    grouped_data['最高平均'] = round(grouped_data['最高'] / 1, 0)
    grouped_data['最低平均'] = round(grouped_data['最低'] / 1, 0)

    # 获取最低值和最高值
    min_value = grouped_data['最低平均'].min()

    s = (
        EffectScatter(init_opts=opts.InitOpts(width='430px'))
            .add_xaxis(grouped_data['年月'].tolist())
            .add_yaxis("最高平均", grouped_data['最高平均'].tolist(), symbol=SymbolType.ARROW)
            .add_yaxis("最低平均", grouped_data['最低平均'].tolist(), symbol=SymbolType.DIAMOND)
            .set_global_opts(
            title_opts=opts.TitleOpts(title="每月平均的最高开盘、最低开盘及成交额(百万)",
                                      title_textstyle_opts=opts.TextStyleOpts(color='#ededed')),
            # visualmap_opts=opts.VisualMapOpts(max_=2100, min_=1000, is_show=True),
            yaxis_opts=opts.AxisOpts(min_=1600, max_=min_value, axislabel_opts=opts.LabelOpts(interval=100),
                                     axisline_opts=opts.AxisLineOpts(linestyle_opts=opts.LineStyleOpts(color='#fff')),
                                     splitline_opts=opts.SplitLineOpts(is_show=True)),
            legend_opts=opts.LegendOpts(orient='vertical', pos_right='3%', legend_icon='pin', pos_top='5%',
                                        textstyle_opts=opts.TextStyleOpts(color='#ededed')),
            xaxis_opts=opts.AxisOpts(axisline_opts=opts.AxisLineOpts(linestyle_opts=opts.LineStyleOpts(color='#FFF'))),
        )
            .set_series_opts(label_opts=opts.LabelOpts(color='pink'))
    )
    c = (
        Grid(init_opts=opts.InitOpts(width="470px", height="710px", bg_color='#0256B6'))
            .add(chart=s, grid_opts=opts.GridOpts(pos_left=50, pos_right=50, height="35%"))
            .add(
            chart=heatmap_1(request),
            grid_opts=opts.GridOpts(pos_left=50, pos_right=50, pos_top="55%", height="35%")

        )
    )

    return c


def page(request):
    page2 = Page(layout=Page.SimplePageLayout)
    page2.add(
        line_1(request),
        pie_1(request),
        scatter_1(request),
    )
    return HttpResponse(page2.render_embed())

7.排版(将可视化图表的位置进行排版)

{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #currentTime {
            position: fixed;
            bottom: 25px;
            left: 20px;
            color: white;
            font-size: 15px;
            z-index: 999;
        }

        body {
            overflow-y: hidden;
        }
    </style>
</head>
<body style="background-color: #0D325F">
<div style="display: flex; justify-content: space-between;">
    <span id="currentTime"></span>

    <div style="width:calc(25%); height: 900px; margin-top: 20px">
        <iframe src="{% url 'pic:line' %}" width="100%" height="72%" frameborder="0" scrolling="no"
                style="background-color: rgba(128, 128, 128, 0.2);"></iframe>
    </div>


    <div style="width:calc(50%); height: 900px; display: flex; flex-direction: column; justify-content: center; align-items: center;">
{#        <iframe src="{% url 'pic:' %}" width="100%" height="100%" frameborder="0" scrolling="no"></iframe>#}
        <iframe src="{% url 'pic:polar' %}" width="100%" height="100%" frameborder="0" scrolling="no"
                style="margin-left: 28%"
        ></iframe>
    </div>


    <div style="width:calc(25%); height: 800px; display: flex; justify-content: center; flex-direction: column; align-items: center;">
        <iframe src="{% url 'pic:heat' %}" width="100%" height="100%" frameborder="0" scrolling="no"
                style="background-color: rgba(128, 128, 128, 0);"></iframe>
        <iframe src="{% url 'pic:graph' %}" width="100%" height="100%" frameborder="0" scrolling="no"
                style=" background-color: rgba(128, 128, 128, 0); margin-top: 10%"></iframe>
    </div>

</div>


<script>
    function updateTime() {
        var now = new Date();
        var weekdays = ["日", "一", "二", "三", "四", "五", "六"]; // 中文星期
        var year = now.getFullYear();
        var month = now.getMonth() + 1; // getMonth() returns 0-based month
        var day = now.getDate();
        var dayOfWeek = weekdays[now.getDay()];
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds();

        // Add leading zero if the number is less than 10
        month = month < 10 ? '0' + month : month;
        day = day < 10 ? '0' + day : day;
        hours = hours < 10 ? '0' + hours : hours;
        minutes = minutes < 10 ? '0' + minutes : minutes;
        seconds = seconds < 10 ? '0' + seconds : seconds;

        var currentTimeString = year + '-' + month + '-' + day + ' 星期' + dayOfWeek + ' ' + hours + ':' + minutes + ':' + seconds;
        document.getElementById('currentTime').textContent = currentTimeString;
    }

    updateTime(); // Call the function initially to display time without delay

    // Update time every second
    setInterval(updateTime, 1000);
</script>

</body>
</html>

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

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

相关文章

pandas合并,拆分excel

目录 一:按照列进行拆分 二:将某几列的数据写入新excel 三:合并两个sheet数据到一个excel的一个sheet中 我们以商品销售明细为例,说明下excel的数据拆分和合并,我们的原始数据如下: 一:按照列进行拆分 现在我们需要统计下是否配送和支付方式为维度进行分组以后得数据…

python--序列化模块json与pickle

什么叫序列化&#xff1f; 将原本的字典、列表等内容转换成一个字符串的过程就 叫做序列化。 多用的两个序列化模块&#xff1a;json与pickle json&#xff0c;用于字符串 和 python数据类型间进行转换 pickle&#xff0c;用于python特有的类型 和 python的数据类型间进行转换 …

教师资格证考试面试报名流程

文章目录 前言面试报名流程一、登录官网二、选择报考省份三、注册报名账号四、确认考试承诺五、填报个人信息六、上传个人照片七、查看个人信息八、面试报名九、等待审核十、考试缴费最后&#xff08;必看&#xff09;附录1. 中小学教师资格考试网2. 广东省教资考试报名通知&am…

Linux:系统引导过程与服务控制

目录 一、linux 系统引导过程 1.1、引导过程总览 1.2、系统初始化进程 &#xff08;centos 6和7 的区别&#xff09; 1.2.1、centos 6 的引导过程 init 进程 1.2.2、centos 7(systemd进程) 二、MBR、GRUB菜单、忘记密码故障修复 2.1、修复MBR扇区故障 模拟故障 重启…

webstorm无法识别tsconfig.json引用项目配置文件中的路径别名

问题 vite项目模板中&#xff0c;应用的ts配置内容写在tsconfig.app.json文件中&#xff0c;并在tsconfig.json通过项目引用的方式导入 {"files": [],"references": [{"path": "./tsconfig.app.json"},{"path": "./t…

小白学python(第二天)

哈喽&#xff0c;各位小伙伴们我们又见面了&#xff0c;昨天的文章吸收得如何&#xff1f;可有不懂否&#xff1f;如有不懂可以在品论区留言哦&#xff0c;废话不多说&#xff0c;开始今天的内容。 字符及字符串的续讲 字符&#xff1a;英文字母&#xff0c;阿拉伯数字&#x…

【QT】设置QTabWidget样式:上、下边线的显示与去除

目录 0.简介 1.环境 2.详细介绍 2.1我的原代码和显示效果 2.2 去掉QTabWidget的边框 2.3 单独留下边线 2.3.1 法一&#xff1a;通过【this->setDocumentMode(true);】设置下边线 2.3.2 通过【QTabWidget::pane】设置下边线 2.4单独设置上边线 2.5 优化界面tab 2.…

ESRW-102打滑开关 JOSEF约瑟 调试简单,安装灵活

ESRW-102打滑开关是一种用于监测设备转速或带速的传感器&#xff0c;尤其适用于皮带输送机等转动设备&#xff0c;用于检测和处理打滑、断裂等机械故障。以下是关于ESRW-102打滑开关的详细介绍&#xff1a; 用途 主要用于皮带输送机、提升机、螺旋输送机等转动设备&#xff0…

Charles 忽略IP授权 Allow 弹窗

当有新的设备连接到 Charles 时&#xff0c;会出现如下弹框确认是否允许&#xff0c;如果希望允许所有客户端连接不再有提示&#xff0c;可以通过添加模糊IP规则来实现。 配置方法&#xff1a;Proxy > Access Control Settings 中添加 0.0.0.0/0 和 ::/0 即可&#xff0c;…

DLS策略洞察:如何应对AI数据中心网络交换机市场的爆发式增长?

摘要&#xff1a; 随着AI技术的发展和应用&#xff0c;AI数据中心对网络交换机的需求日益增加。摩根士丹利预计&#xff0c;2023-2026年间&#xff0c;AI数据中心网络交换机的收入复合年增长率&#xff08;CAGR&#xff09;将达到55%。本文将详细分析AI数据中心网络交换机市场…

高德地图开发隐藏logo和标志文字

vue开发隐藏引用高德地图的logo和文字方法 //scss <style langscss scoped>:deep(.amap-logo), :deep(.amap-copyright) {display: none !important; }</style>

环路滤波器

块效应产生的原因 块效应指视频边界不连续的变化,我们在观看视频的时候,在运动剧烈的场景常能观察到图像出现小方块,小方块在边界处呈现不连续的效果(如下图),这种现象被称为块效应(blocking artifact)。 造成这种现象的主要原因有两点: DCT量化误差导致运动补偿导致…

C# Winform中制作精美控件(2)

仓库温度监控系统重有个控件&#xff0c;就是温度监控&#xff0c;还是比较精美的&#xff0c;那么我们来看看制作的要点有哪些。 前面我们讨论过布局和圆角按钮。这节主要关注温度计控件 1. 布局&#xff1a; 两个Panel将界面分位上下两个部分&#xff0c;Dock.Top Dock.Fil…

Web3 ETF 的软件开发框架

Web3 ETF 的软件开发框架主要包含以下几个方面&#xff0c;需要说明的是&#xff0c;Web3 ETF 仍处于早期发展阶段&#xff0c;相关技术和标准尚未成熟。在开发 Web3 ETF 时&#xff0c;需要谨慎评估风险&#xff0c;并做好安全防范措施。北京木奇移动技术有限公司&#xff0c;…

【博士每天一篇文献-算法】Fearnet Brain-inspired model for incremental learning

阅读时间&#xff1a;2023-12-16 1 介绍 年份&#xff1a;2017 作者&#xff1a;Ronald Kemker&#xff0c;美国太空部队&#xff1b;Christopher Kanan&#xff0c;罗切斯特大学 期刊&#xff1a; arXiv preprint 引用量&#xff1a;520 Kemker R, Kanan C. Fearnet: Brain-…

手机恢复已删除的照片,2个实用方法,有效避免数据丢失

手机相册&#xff0c;简直就是我们生活中的宝藏库&#xff0c;里面储存着我们拍摄的每一张照片。但是&#xff0c;有时候我们会因为手残或者意外情况&#xff0c;不小心把手机照片给删了&#xff0c;这简直是让我们的生活留下了无法弥补的遗憾啊&#xff01; 为了帮助大家避免…

如何封装自动化测试框架?

封装自动化测试框架&#xff0c;测试人员不用关注框架的底层实现&#xff0c;根据指定的规则进行测试用例的创建、执行即可&#xff0c;这样就降低了自动化测试门槛&#xff0c;能解放出更多的人力去做更深入的测试工作。 本篇文章就来介绍下&#xff0c;如何封装自动化测试框…

“天下第一痛”到底有多疼?三叉神经痛有哪些症状

三叉神经是负责脸部、口腔、鼻腔和舌前的感觉和咀嚼肌的运动的颅脑最粗大的神经。当三叉神经被干扰后&#xff0c;它所支配的面部区域内就会出现一种反复发作的短暂性剧烈疼痛&#xff0c;每次痛持续数秒至数十秒&#xff0c;可严重影响患者生活质量。 三叉神经痛的主要特征是在…

云渲染平台千千万,哪个平台更划算!?

渲染100 以高性价比著称&#xff0c;是预算有限的小伙伴首选。 15分钟0.2,60分钟内0.8;注册填邀请码【7788】可领30元礼包和免费渲染券) 提供了多种机器配置选择(可以自行匹配环境)最高256G大内存机器&#xff0c;满足不同用户需求。支持3dmax&#xff0c;cr&#xff0c;vr所…

他们说:优秀的程序员应该对代码保持追求

在当今技术飞速发展的时代&#xff0c;快速开发成为了企业竞争的关键。为了满足市场需求&#xff0c;降低开发成本&#xff0c;越来越多的企业开始关注低代码开发平台。 传统的应用开发流程通常需要大量的人力资源和时间投入&#xff0c;使得企业在产品迭代的速度上受限。而低…