Qt问题:不同文件中相同命名空间的多个 Q_NAMESPACE

我在同一namespace中定义了2个enum,定义如下:

a.h

//
// Created by qiaowei on 2024/11/15.
//#ifndef ELECTRICITY_MONTHS_ENUM_H
#define ELECTRICITY_MONTHS_ENUM_H#include <QMetaObject>namespace data {Q_NAMESPACEenum class Months_enum {january,february,march,april,may,june,july,august,september,october,november,december};Q_ENUM_NS(Months_enum)} // data#endif //ELECTRICITY_MONTHS_ENUM_H

b.h

//
// Created by qiaowei on 2024/11/8.
//#ifndef ELECTRICITY_EXPENSE_ENUM_H
#define ELECTRICITY_EXPENSE_ENUM_H#include <QMetaObject>namespace data {Q_NAMESPACEenum class Expense_enum {electricity_bill,oil_bill,water_bill,gas_bill,internet_bill,other_bill};Q_ENUM_NS(Expense_enum)} // data#endif //ELECTRICITY_EXPENSE_ENUM_H

编译时报“ error C2011: “qt_meta_stringdata_data_t”:“struct”类型重定义”类似错误:

====================[ Build | Electricity | Debug ]=============================
C:\ProgramFiles\cmake-3.30.2-windows-x86_64\bin\cmake.exe --build D:\programming\source-code\cpp\Electricity\cmake-build-debug --target Electricity -j 14
[1/4] Automatic MOC and UIC for target Electricity
[2/4] Building CXX object CMakeFiles\Electricity.dir\data\enum\months_enum.cpp.obj
[3/4] Building CXX object CMakeFiles\Electricity.dir\Electricity_autogen\mocs_compilation.cpp.obj
FAILED: CMakeFiles/Electricity.dir/Electricity_autogen/mocs_compilation.cpp.obj 
C:\PROGRA~4\MICROS~1\2022\BUILDT~1\VC\Tools\MSVC\1437~1.328\bin\Hostx64\x64\cl.exe  /nologo /TP -DQT_CORE_LIB -DQT_GUI_LIB -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -ID:\programming\source-code\cpp\Electricity\.\include\qxlsx -ID:\programming\source-code\cpp\Electricity\.\include\test -external:ID:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\include -external:IC:\ProgramFiles\Qt\5.15.2\msvc2019_64\include -external:IC:\ProgramFiles\Qt\5.15.2\msvc2019_64\include\QtCore -external:IC:\ProgramFiles\Qt\5.15.2\msvc2019_64\.\mkspecs\win32-msvc -external:IC:\ProgramFiles\Qt\5.15.2\msvc2019_64\include\QtGui -external:IC:\ProgramFiles\Qt\5.15.2\msvc2019_64\include\QtANGLE -external:IC:\ProgramFiles\Qt\5.15.2\msvc2019_64\include\QtWidgets -external:IC:\ProgramFiles\Qt\5.15.2\msvc2019_64\include\QtUiTools -external:W0 /DWIN32 /D_WINDOWS /EHsc /Ob0 /Od /RTC1 -std:c++17 -MDd -Zi /utf-8 /showIncludes /FoCMakeFiles\Electricity.dir\Electricity_autogen\mocs_compilation.cpp.obj /FdCMakeFiles\Electricity.dir\ /FS -c D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\mocs_compilation.cpp
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(24): error C2011: “qt_meta_stringdata_data_t”:“struct”类型重定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(33): error C2374: “qt_meta_stringdata_data”: 重定义;多次初始化
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(33): note: 参见“qt_meta_stringdata_data”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(35): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(35): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(35): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(36): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(36): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(36): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(37): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(37): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(37): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(38): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(38): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(38): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(39): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(39): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(39): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(40): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(40): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(40): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(41): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(41): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(41): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(42): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(42): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(42): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(43): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(43): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(43): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(44): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(44): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(44): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(45): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(45): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(45): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(46): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(46): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(46): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(47): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(47): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(47): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(48): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(48): error C2618: offsetof 中的非法成员指示符
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(48): note: offsetof 具有内在含义;使用 /Zc:offsetof- 还原到旧的非符合定义
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(33): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(57): error C2374: “qt_meta_data_data”: 重定义;多次初始化
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(51): note: 参见“qt_meta_data_data”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(90): error C2370: “data::staticMetaObject”: 重定义;不同的存储类
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4\../../../data/enum/months_enum.h(14): note: 参见“data::staticMetaObject”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(92): error C2027: 使用了未定义类型“qt_meta_stringdata_data_t”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_expense_enum.cpp(24): note: 参见“qt_meta_stringdata_data_t”的声明
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(93): error C2440: “初始化”: 无法从“const uint [32]”转换为“const QByteArrayData *”
D:\programming\source-code\cpp\Electricity\cmake-build-debug\Electricity_autogen\PM3IPG3PG4/moc_months_enum.cpp(93): note: 指向的类型不相关; 转换需要 reinterpret_cast、C 样式强制转换或带圆括号的函数样式强制转换
ninja: build stopped: subcommand failed.

高赞回答这是Qt的moc机制原因,目前无法解决:

官方 Qt 问题跟踪器中存在相应的问题:

QTBUG-68611。然而,该问题因超出范围而被关闭,因为由于 Qt 元对象编译器 (moc) 的设计,对此无能为力。

简而言之,Qt 不支持多个头文件,每个头文件都有

Q_NAMESPACE

 宏。这是不可能的。

或者,您可以

(尽管我不建议)有一个中间文件结构,如下所示:

// internal/C1.h #include <QObject> enum class Enum1 {A, B}; Q_ENUM_NS(Enum1)
 //internal/C2.h #include <QObject> enum class Enum2 {A, B}; Q_ENUM_NS(Enum1) 
 

// C.h #include <QObject> namespace SW { Q_NAMESPACE #include internal/C1.h #include internal/C2.h }

 参考:https://www.soinside.com/question/Rk6AQ7khQe7AmtjRNdpnJF

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

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

相关文章

NVR录像机汇聚管理EasyNVR多品牌NVR管理工具视频汇聚技术在智慧安防监控中的应用与优势

随着信息技术的快速发展和数字化时代的到来&#xff0c;安防监控领域也在不断进行技术创新和突破。NVR管理平台EasyNVR作为视频汇聚技术的领先者&#xff0c;凭借其强大的视频处理、汇聚与融合能力&#xff0c;展现出了在安防监控领域巨大的应用潜力和价值。本文将详细介绍Easy…

linux进程、文件常见命令

文章目录 进程相关命令日志相关命令 进程相关命令 在Linux系统中&#xff0c;有多个命令可以用来管理和监控进程。以下是一些常用的进程相关命令&#xff1a; ps&#xff1a;查看当前运行的进程。 ps aux&#xff1a;显示所有运行中的进程。ps -ef&#xff1a;显示所有进程的…

Django中的URL配置与动态参数传递(多种方法比较)

Django中的URL配置与动态参数传递(多种方法比较) 目录 ✨ 基础URL配置与re_path()的解读&#x1f527; path()与re_path()的对比分析&#x1f680; 动态参数处理方案详解&#x1f4d8; 正则表达式匹配的优势与劣势&#x1f9e9; 利用path()进行路径参数处理的实现与优劣&…

OpenSIP2.4.11 向 FreeSWITCH 注册

应朋友要求做了个简单的测试&#xff0c;花费时间不过半小时&#xff0c;记录如下&#xff1a; OpenSIPS IP 地址&#xff1a;192.168.31.213 FreeSWITCH IP 地址&#xff1a;192.168.31.166 加载 uac_registrant 模块&#xff08;这个模块依赖 uac_auth 模块&#xff0c;得…

C/C++运行库

文章目录 入口函数glibc入口函数_start__libc_start_mainMSVC入口函数堆初始化IO初始化 glibc C运行库glibc启动文件gcc补充C全局构造与析构 运行库对于多线程的改进线程局部存储 入口函数 使用C语言编写的一个hello world程序在用户看来的确非常简单&#xff0c;源代码仅需要…

学习使用LVGL,依赖官方网址

LVGL Basics — LVGL documentation LVGL基础知识 LVGL是一个开源的图形库&#xff0c;提供创建嵌入式GUI的一切 LVGL数据流 您为每个物理显示面板 创建一个显示器 (lv_display) &#xff0c;在其上创建屏幕小部件&#xff0c;将小部件添加到这些屏幕上。要处理触摸、鼠标、…

计算机网络HTTP——针对实习面试

目录 计算机网络HTTP什么是HTTP&#xff1f;HTTP和HTTPS有什么区别&#xff1f;分别说明HTTP/1.0、HTTP/2.0、HTTP/3.0请说明访问网页的全过程请说明HTTP常见的状态码Cookie和Session有什么区别&#xff1f;HTTP请求方式有哪些&#xff1f;请解释GET和POST的区别&#xff1f;HT…

大数据-226 离线数仓 - Flume 优化配置 自定义拦截器 拦截原理 了 拦截器实现 Java

点一下关注吧&#xff01;&#xff01;&#xff01;非常感谢&#xff01;&#xff01;持续更新&#xff01;&#xff01;&#xff01; Java篇开始了&#xff01; 目前开始更新 MyBatis&#xff0c;一起深入浅出&#xff01; 目前已经更新到了&#xff1a; Hadoop&#xff0…

深入解析生成对抗网络(GAN)

1. 引言 背景介绍 在过去的几十年中&#xff0c;深度学习在计算机视觉、自然语言处理和语音识别等领域取得了巨大的突破。然而&#xff0c;如何让机器生成高质量、逼真的数据一直是人工智能领域的挑战。传统的生成模型&#xff0c;如变分自编码器&#xff08;VAE&#xff09;…

无人机动力系统测试-实测数据与CFD模拟仿真数据关联对比分析

我们经常被问到这样的问题&#xff1a;“我们计划运行 CFD 仿真&#xff0c;我们还需要对电机和螺旋桨进行实验测试吗&#xff1f;我们可能有偏见&#xff0c;但我们的答案始终是肯定的&#xff0c;而且有充分的理由。我们自己执行了大量的 CFD 仿真&#xff0c;但我们承认&…

验证双随机矩阵(doubly stochastic matrix) 满足C(P)=C(P^T)

验证双随机矩阵(doubly stochastic matrix) 满足C( P P P)C(P T ^T T) 双随机矩阵&#xff1a; 在数学中&#xff0c;一个双随机矩阵&#xff08;doubly stochastic matrix&#xff09;是一个满足以下条件的矩阵&#xff1a; 非负矩阵&#xff1a;矩阵中的每个元素都是非负的…

教资考试题目

综合多选题 高等教育政策在评估的实施阶段需要完成的工作有&#xff08;BCD&#xff09; A. 制定评估计划 B. 收集整理政策信息 C. 统计、分析政策信息 D. 充分运用评估方法获取结论 恪尽师者规范&#xff0c;严守师德“红线”&#xff0c;需要教师&#xff08;ABCD&…

Chrome 浏览器开启打印模式

打开开发者工具ctrl shift p输入print 找到 Emulate CSS print media type

Vite初始化Vue3+Typescrpt项目

初始化项目 安装 Vite 首先&#xff0c;确保你的 Node.js 版本 > 12.0.0。然后在命令行中运行以下命令来创建一个 Vite Vue 3 TypeScript 的项目模板&#xff1a; npm init vitelatest进入项目目录 创建完成后&#xff0c;进入项目目录&#xff1a; cd vue3-demo启动…

24 年第十届数维杯国际数模竞赛赛题浅析

本次万众瞩目的数维杯国际大学生数学建模赛题已正式出炉&#xff0c;无论是赛题难度还是认可度&#xff0c;该比赛都是数模届的独一档&#xff0c;含金量极高&#xff0c;可以用于综测加分、保研、简历添彩等各方面。考虑到大家解题实属不易&#xff0c;为了帮助大家取得好成绩…

Spring Boot 集成 Kettle

Kettle 简介 Kettle 最初由 Matt Casters 开发&#xff0c;是 Pentaho 数据集成平台的一部分。它提供了一个用户友好的界面和丰富的功能集&#xff0c;使用户能够轻松地设计、执行和监控 ETL 任务。Kettle 通过其强大的功能和灵活性&#xff0c;帮助企业高效地处理大规模数据集…

自动语音识别(ASR)与文本转语音(TTS)技术的应用与发展

&#x1f49d;&#x1f49d;&#x1f49d;欢迎来到我的博客&#xff0c;很高兴能够在这里和您见面&#xff01;希望您在这里可以感受到一份轻松愉快的氛围&#xff0c;不仅可以获得有趣的内容和知识&#xff0c;也可以畅所欲言、分享您的想法和见解。 推荐:kwan 的首页,持续学…

【Linux】内核模版加载modprobe | lsmod

modprobe modprobe 是一个用于加载和卸载 Linux 内核模块的命令。它不仅能够加载单个模块&#xff0c;还能处理模块之间的依赖关系&#xff0c;确保所有依赖的模块都被正确加载。以下是一些关于 modprobe 命令的基本用法和常见选项的详细介绍。 基本语法 modprobe [option…

matlab 读取csv

需要跳过第一行表头等信息 1、读取整个文件 csvread(FILENAME)%文件路径 文件名2、指定起始位置 csvread(FILENAME, R, C)%从文件的第R行和第C列开始读取数据 逗号分开3、指定数据范围 csvread(FILENAME, R, C, [R1 C1 R2 C2])%读取从(R1, C1)到(R2, C2)范围内的数据注意&am…