Word控件Spire.Doc 【列表】教程:在 Word 文档中插入列表

news2025/2/23 10:29:20

Spire.Doc for .NET是一款专门对 Word 文档进行操作的 .NET 类库。在于帮助开发人员无需安装 Microsoft Word情况下,轻松快捷高效地创建、编辑、转换和打印 Microsoft Word 文档。拥有近10年专业开发经验Spire系列办公文档开发工具,专注于创建、编辑、转换和打印Word/PDF/Excel等格式文件处理,小巧便捷。

E-iceblue 功能类库Spire 系列文档处理组件均由中国本土团队研发,不依赖第三方软件,不受其他国家的技术或法律法规限制,同时适配国产操作系统如中科方德、中标麒麟等,兼容国产文档处理软件 WPS(如 .wps/.et/.dps 等格式

Spire.Doc for.NET 最新下载(qun:767755948)icon-default.png?t=N4HBhttps://www.evget.com/product/3368/download

Word 文档中使用列表来勾勒、排列和强调文本,使用户能够轻松扫描和理解一系列项目。Word中有三种不同类型的列表,即编号列表,项目符号列表和多级列表。编号列表用于具有序列或优先级的项目,例如一系列说明。项目符号列表用于没有特定优先级的项目,例如函数或事实列表。多级列表用于存在序列且您希望每个段落单独编号的情况。

在 C# 中插入 Word 中的编号列表

Spire.Doc for .NET 提供了 ListStyle 类,可用于创建编号列表样式或项目符号样式。然后,可以使用 Paragraph.ListFormat.ApplyStyle() 方法将列表样式应用于段落。创建编号列表的步骤如下。

  • 创建文档对象。
  • 使用 Document.AddSection() 方法添加一个节。
  • 创建 ListStyle 类的实例,将列表类型指定为“已编号”。
  • 通过 ListStyle.Levels[index] 属性获取列表的特定级别,并通过 ListLevel.PatternType 属性设置编号类型。
  • 使用 Document.ListStyles.Add() 方法将列表样式添加到文档中。
  • 使用 Section.AddParagraph() 方法向文档添加多个段落。
  • 使用 Paragraph.ListFormat.ApplyStyle() 方法将列表样式应用于特定段落。
  • 通过 Paragraph.ListFormat.ListLevelNumber 属性指定列表级别。
  • 使用 Document.SaveToFile() 方法将文档保存到 Word 文件。

【C# 】

using Spire.Doc;
using Spire.Doc.Documents;

namespace CreateOrderedList
{
class Program
{
static void Main(string[] args)
{
//Create a Document object
Document document = new Document();

//Add a section
Section section = document.AddSection();

//Create a numbered list style
ListStyle listStyle = new ListStyle(document, ListType.Numbered);
listStyle.Name = "numberedList";
listStyle.Levels[0].PatternType = ListPatternType.DecimalEnclosedParen;
listStyle.Levels[0].TextPosition = 20;
document.ListStyles.Add(listStyle);

//Add a paragraph
Paragraph paragraph = section.AddParagraph();
paragraph.AppendText("Required Web Development Skills:");
paragraph.Format.AfterSpacing = 5f;

//Add a paragraph and apply the numbered list style to it
paragraph = section.AddParagraph();
paragraph.AppendText("HTML");
paragraph.ListFormat.ApplyStyle("numberedList");
paragraph.ListFormat.ListLevelNumber = 0;

//Add another four paragraphs and apply the numbered list style to them
paragraph = section.AddParagraph();
paragraph.AppendText("CSS");
paragraph.ListFormat.ApplyStyle("numberedList");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("JavaScript");
paragraph.ListFormat.ApplyStyle("numberedList");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("Python");
paragraph.ListFormat.ApplyStyle("numberedList");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("MySQL");
paragraph.ListFormat.ApplyStyle("numberedList");
paragraph.ListFormat.ListLevelNumber = 0;

//Save the document to file
document.SaveToFile("NumberedList.docx", FileFormat.Docx);
}
}
}

【VB.NET】

Imports Spire.Doc
Imports Spire.Doc.Documents
 
Namespace CreateOrderedList
    Class Program
        Shared  Sub Main(ByVal args() As String)
            'Create a Document object
            Dim document As Document =  New Document() 
 
            'Add a section
            Dim section As Section =  document.AddSection() 
 
            'Create a numbered list style
            Dim listStyle As ListStyle =  New ListStyle(document,ListType.Numbered) 
            listStyle.Name = "numberedList"
            listStyle.Levels(0).PatternType = ListPatternType.DecimalEnclosedParen
            listStyle.Levels(0).TextPosition = 20   
            document.ListStyles.Add(listStyle)
 
            'Add a paragraph
            Dim paragraph As Paragraph =  section.AddParagraph() 
            paragraph.AppendText("Required Web Development Skills:")
            paragraph.Format.AfterSpacing = 5f
 
            'Add a paragraph and apply the numbered list style to it
            paragraph = section.AddParagraph()
            paragraph.AppendText("HTML")
            paragraph.ListFormat.ApplyStyle("numberedList")
            paragraph.ListFormat.ListLevelNumber = 0
 
            'Add another four paragraphs and apply the numbered list style to them
            paragraph = section.AddParagraph()
            paragraph.AppendText("CSS")
            paragraph.ListFormat.ApplyStyle("numberedList")
            paragraph.ListFormat.ListLevelNumber = 0
 
            paragraph = section.AddParagraph()
            paragraph.AppendText("JavaScript")
            paragraph.ListFormat.ApplyStyle("numberedList")
            paragraph.ListFormat.ListLevelNumber = 0
 
            paragraph = section.AddParagraph()
            paragraph.AppendText("Python")
            paragraph.ListFormat.ApplyStyle("numberedList")
            paragraph.ListFormat.ListLevelNumber = 0
 
            paragraph = section.AddParagraph()
            paragraph.AppendText("MySQL")
            paragraph.ListFormat.ApplyStyle("numberedList")
            paragraph.ListFormat.ListLevelNumber = 0
 
            'Save the document to file
            document.SaveToFile("NumberedList.docx", FileFormat.Docx)
        End Sub
    End Class
End Namespace

在 C# 中插入 Word 中的项目符号列表

创建项目符号列表的过程类似于创建编号列表的过程。不同之处在于,在创建列表样式时,必须将列表类型指定为"项目符号",并为其设置项目符号。以下是详细步骤。

  • 创建文档对象。
  • 使用 Document.AddSection() 方法添加一个节。
  • 创建 ListStyle 类的实例,将列表类型指定为项目符号
  • 通过 ListStyle.Levels[index] 属性获取列表的特定级别,并通过 ListLevel.BulletCharacter 属性设置项目符号。
  • 使用 Document.ListStyles.Add() 方法将列表样式添加到文档中。
  • 使用 Section.AddParagraph() 方法向文档添加多个段落。
  • 使用 Paragraph.ListFormat.ApplyStyle() 方法将列表样式应用于特定段落。
  • 通过 Paragraph.ListFormat.ListLevelNumber 属性指定列表级别。
  • 使用 Document.SaveToFile() 方法将文档保存到 Word 文件。

【C# 】

using Spire.Doc;
using Spire.Doc.Documents;

namespace CreateUnorderedList
{
class Program
{
static void Main(string[] args)
{
//Create a Document object
Document document = new Document();

//Add a section
Section section = document.AddSection();

//Create a bulleted list style
ListStyle listStyle = new ListStyle(document, ListType.Bulleted);
listStyle.Name = "bulletedList";
listStyle.Levels[0].BulletCharacter = "\x00B7";
listStyle.Levels[0].CharacterFormat.FontName = "Symbol";
listStyle.Levels[0].TextPosition = 20;
document.ListStyles.Add(listStyle);

//Add a paragraph
Paragraph paragraph = section.AddParagraph();
paragraph.AppendText("Computer Science Subjects:");
paragraph.Format.AfterSpacing = 5f;

//Add a paragraph and apply the bulleted list style to it
paragraph = section.AddParagraph();
paragraph.AppendText("Data Structure");
paragraph.ListFormat.ApplyStyle("bulletedList");
paragraph.ListFormat.ListLevelNumber = 0;

//Add another five paragraphs and apply the bulleted list style to them
paragraph = section.AddParagraph();
paragraph.AppendText("Algorithm");
paragraph.ListFormat.ApplyStyle("bulletedList");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("Computer Networks");
paragraph.ListFormat.ApplyStyle("bulletedList");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("Operating System");
paragraph.ListFormat.ApplyStyle("bulletedList");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("C Programming");
paragraph.ListFormat.ApplyStyle("bulletedList");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("Theory of Computations");
paragraph.ListFormat.ApplyStyle("bulletedList");
paragraph.ListFormat.ListLevelNumber = 0;

//Save the document to file
document.SaveToFile("BulletedList.docx", FileFormat.Docx);
}
}
}

【VB.NET】

Imports Spire.Doc
Imports Spire.Doc.Documents

Namespace CreateUnorderedList
Class Program
Shared Sub Main(ByVal args() As String)
'Create a Document object
Dim document As Document = New Document()

'Add a section
Dim section As Section = document.AddSection()

'Create a bulleted list style
Dim listStyle As ListStyle = New ListStyle(document,ListType.Bulleted)
listStyle.Name = "bulletedList"
listStyle.Levels(0).BulletCharacter = "\x00B7"
listStyle.Levels(0).CharacterFormat.FontName = "Symbol"
listStyle.Levels(0).TextPosition = 20
document.ListStyles.Add(listStyle)

'Add a paragraph
Dim paragraph As Paragraph = section.AddParagraph()
paragraph.AppendText("Computer Science Subjects:")
paragraph.Format.AfterSpacing = 5f

'Add a paragraph and apply the bulleted list style to it
paragraph = section.AddParagraph()
paragraph.AppendText("Data Structure")
paragraph.ListFormat.ApplyStyle("bulletedList")
paragraph.ListFormat.ListLevelNumber = 0

'Add another five paragraphs and apply the bulleted list style to them
paragraph = section.AddParagraph()
paragraph.AppendText("Algorithm")
paragraph.ListFormat.ApplyStyle("bulletedList")
paragraph.ListFormat.ListLevelNumber = 0

paragraph = section.AddParagraph()
paragraph.AppendText("Computer Networks")
paragraph.ListFormat.ApplyStyle("bulletedList")
paragraph.ListFormat.ListLevelNumber = 0

paragraph = section.AddParagraph()
paragraph.AppendText("Operating System")
paragraph.ListFormat.ApplyStyle("bulletedList")
paragraph.ListFormat.ListLevelNumber = 0

paragraph = section.AddParagraph()
paragraph.AppendText("C Programming")
paragraph.ListFormat.ApplyStyle("bulletedList")
paragraph.ListFormat.ListLevelNumber = 0

paragraph = section.AddParagraph()
paragraph.AppendText("Theory of Computations")
paragraph.ListFormat.ApplyStyle("bulletedList")
paragraph.ListFormat.ListLevelNumber = 0

'Save the document to file
document.SaveToFile("BulletedList.docx", FileFormat.Docx)
End Sub
End Class
End Namespace

在 C# 的 Word 中插入多级编号列表

多级列表至少包含两个不同的级别。嵌套列表的每个级别都由 ListStyle.Levels[index] 属性表示,通过该属性可以设置特定级别的编号类型和前缀。以下是在 Word 中创建多级编号列表的步骤。

  • 创建文档对象。
  • 使用 Document.AddSection() 方法添加一个节。
  • 创建 ListStyle 类的实例,将列表类型指定为“已编号”。
  • 通过 ListStyle.Levels[index] 属性获取列表的特定级别,并设置编号类型和前缀。
  • 使用 Document.ListStyles.Add() 方法将列表样式添加到文档中。
  • 使用 Section.AddParagraph() 方法向文档添加多个段落。
  • 使用 Paragraph.ListFormat.ApplyStyle() 方法将列表样式应用于特定段落。
  • 通过 Paragraph.ListFormat.ListLevelNumber 属性指定列表级别。
  • 使用 Document.SaveToFile() 方法将文档保存到 Word 文件。

【C# 】

using Spire.Doc;
using Spire.Doc.Documents;

namespace CreateMultiLevelList
{
class Program
{
static void Main(string[] args)
{
//Create a Document object
Document document = new Document();

//Add a section
Section section = document.AddSection();

//Create a numbered list style, specifying number prefix and pattern type of each level
ListStyle listStyle = new ListStyle(document, ListType.Numbered);
listStyle.Name = "levelstyle";
listStyle.Levels[0].PatternType = ListPatternType.Arabic;
listStyle.Levels[0].TextPosition = 20;
listStyle.Levels[1].NumberPrefix = "\x0000.";
listStyle.Levels[1].PatternType = ListPatternType.Arabic;
listStyle.Levels[2].NumberPrefix = "\x0000.\x0001.";
listStyle.Levels[2].PatternType = ListPatternType.Arabic;
document.ListStyles.Add(listStyle);

//Add a paragraph
Paragraph paragraph = section.AddParagraph();
paragraph.AppendText("Here's a Multi-Level Numbered List:");
paragraph.Format.AfterSpacing = 5f;

//Add a paragraph and apply the numbered list style to it
paragraph = section.AddParagraph();
paragraph.AppendText("The first item");
paragraph.ListFormat.ApplyStyle("levelstyle");
paragraph.ListFormat.ListLevelNumber = 0;

//Add another five paragraphs and apply the numbered list stype to them
paragraph = section.AddParagraph();
paragraph.AppendText("The second item");
paragraph.ListFormat.ApplyStyle("levelstyle");
paragraph.ListFormat.ListLevelNumber = 0;

paragraph = section.AddParagraph();
paragraph.AppendText("The first sub-item");
paragraph.ListFormat.ApplyStyle("levelstyle");
paragraph.ListFormat.ListLevelNumber = 1;

paragraph = section.AddParagraph();
paragraph.AppendText("The second sub-item");
paragraph.ListFormat.ContinueListNumbering();
paragraph.ListFormat.ApplyStyle("levelstyle");

paragraph = section.AddParagraph();
paragraph.AppendText("A sub-sub-item");
paragraph.ListFormat.ApplyStyle("levelstyle");
paragraph.ListFormat.ListLevelNumber = 2;

paragraph = section.AddParagraph();
paragraph.AppendText("The third item");
paragraph.ListFormat.ApplyStyle("levelstyle");
paragraph.ListFormat.ListLevelNumber = 0;

//Save the document to file
document.SaveToFile("MultilevelNumberedList.docx", FileFormat.Docx);
}
}
}

【VB.NET】

Imports Spire.Doc
Imports Spire.Doc.Documents

Namespace CreateMultiLevelList
Class Program
Shared Sub Main(ByVal args() As String)
'Create a Document object
Dim document As Document = New Document()

'Add a section
Dim section As Section = document.AddSection()

'Create a numbered list style, specifying number prefix and pattern type of each level
Dim listStyle As ListStyle = New ListStyle(document,ListType.Numbered)
listStyle.Name = "levelstyle"
listStyle.Levels(0).PatternType = ListPatternType.Arabic
listStyle.Levels(0).TextPosition = 20
listStyle.Levels(1).NumberPrefix = "\x0000."
listStyle.Levels(1).PatternType = ListPatternType.Arabic
listStyle.Levels(2).NumberPrefix = "\x0000.\x0001."
listStyle.Levels(2).PatternType = ListPatternType.Arabic
document.ListStyles.Add(listStyle)

'Add a paragraph
Dim paragraph As Paragraph = section.AddParagraph()
paragraph.AppendText("Here's a Multi-Level Numbered List:")
paragraph.Format.AfterSpacing = 5f

'Add a paragraph and apply the numbered list style to it
paragraph = section.AddParagraph()
paragraph.AppendText("The first item")
paragraph.ListFormat.ApplyStyle("levelstyle")
paragraph.ListFormat.ListLevelNumber = 0

'Add another five paragraphs and apply the numbered list stype to them
paragraph = section.AddParagraph()
paragraph.AppendText("The second item")
paragraph.ListFormat.ApplyStyle("levelstyle")
paragraph.ListFormat.ListLevelNumber = 0

paragraph = section.AddParagraph()
paragraph.AppendText("The first sub-item")
paragraph.ListFormat.ApplyStyle("levelstyle")
paragraph.ListFormat.ListLevelNumber = 1

paragraph = section.AddParagraph()
paragraph.AppendText("The second sub-item")
paragraph.ListFormat.ContinueListNumbering()
paragraph.ListFormat.ApplyStyle("levelstyle")

paragraph = section.AddParagraph()
paragraph.AppendText("A sub-sub-item")
paragraph.ListFormat.ApplyStyle("levelstyle")
paragraph.ListFormat.ListLevelNumber = 2

paragraph = section.AddParagraph()
paragraph.AppendText("The third item")
paragraph.ListFormat.ApplyStyle("levelstyle")
paragraph.ListFormat.ListLevelNumber = 0

'Save the document to file
document.SaveToFile("MultilevelNumberedList.docx", FileFormat.Docx)
End Sub
End Class
End Namespace

在 C# 的 Word 中插入多级混合类型列表

在某些情况下,您可能希望在多级列表中混合使用数字和符号项目符号点。要创建混合类型列表,您只需创建编号列表样式和项目符号列表样式,并将它们应用于不同的段落。具体步骤如下。

  • 创建文档对象。
  • 使用 Document.AddSection() 方法添加一个节。
  • 创建编号列表样式和项目符号列表样式。
  • 使用 Section.AddParagraph() 方法向文档添加多个段落。
  • 使用 Paragraph.ListFormat.ApplyStyle() 方法将不同的列表样式应用于不同的段落。
  • 使用 Document.SaveToFile() 方法将文档保存到 Word 文件。

【C# 】

using Spire.Doc;
using Spire.Doc.Documents;

namespace CreateMultilevelMixedList
{
class Program
{
static void Main(string[] args)
{
//Create a Document object
Document document = new Document();

//Add a section
Section section = document.AddSection();

//Create a numbered list style
ListStyle numberedListStyle = new ListStyle(document, ListType.Numbered);
numberedListStyle.Name = "numberedStyle";
numberedListStyle.Levels[0].PatternType = ListPatternType.Arabic;
numberedListStyle.Levels[0].TextPosition = 20;
numberedListStyle.Levels[1].PatternType = ListPatternType.LowLetter;
document.ListStyles.Add(numberedListStyle);

//Create a bulleted list style
ListStyle bulletedListStyle = new ListStyle(document, ListType.Bulleted);
bulletedListStyle.Name = "bulltedStyle";
bulletedListStyle.Levels[2].BulletCharacter = "\x002A";
bulletedListStyle.Levels[2].CharacterFormat.FontName = "Symbol";
document.ListStyles.Add(bulletedListStyle);

//Add a paragraph
Paragraph paragraph = section.AddParagraph();
paragraph.AppendText("Here's a Multi-Level Mixed List:");
paragraph.Format.AfterSpacing = 5f;

//Add a paragraph and apply the numbered list style to it
paragraph = section.AddParagraph();
paragraph.AppendText("The first item");
paragraph.ListFormat.ApplyStyle("numberedStyle");
paragraph.ListFormat.ListLevelNumber = 0;

//Add another five paragraphs and apply different list stype to them
paragraph = section.AddParagraph();
paragraph.AppendText("The first sub-item");
paragraph.ListFormat.ApplyStyle("numberedStyle");
paragraph.ListFormat.ListLevelNumber = 1;

paragraph = section.AddParagraph();
paragraph.AppendText("The second sub-item");
paragraph.ListFormat.ListLevelNumber = 1;
paragraph.ListFormat.ApplyStyle("numberedStyle");

paragraph = section.AddParagraph();
paragraph.AppendText("The first sub-sub-item");
paragraph.ListFormat.ApplyStyle("bulltedStyle");
paragraph.ListFormat.ListLevelNumber = 2;

paragraph = section.AddParagraph();
paragraph.AppendText("The second sub-sub-item");
paragraph.ListFormat.ApplyStyle("bulltedStyle");
paragraph.ListFormat.ListLevelNumber = 2;

paragraph = section.AddParagraph();
paragraph.AppendText("The second item");
paragraph.ListFormat.ApplyStyle("numberedStyle");
paragraph.ListFormat.ListLevelNumber = 0;

//Save the document to file
document.SaveToFile("MultilevelMixedList.docx", FileFormat.Docx);
}
}
}

【VB.NET】

Imports Spire.Doc
Imports Spire.Doc.Documents

Namespace CreateMultilevelMixedList
Class Program
Shared Sub Main(ByVal args() As String)
'Create a Document object
Dim document As Document = New Document()

'Add a section
Dim section As Section = document.AddSection()

'Create a numbered list style
Dim numberedListStyle As ListStyle = New ListStyle(document,ListType.Numbered)
numberedListStyle.Name = "numberedStyle"
numberedListStyle.Levels(0).PatternType = ListPatternType.Arabic
numberedListStyle.Levels(0).TextPosition = 20
numberedListStyle.Levels(1).PatternType = ListPatternType.LowLetter
document.ListStyles.Add(numberedListStyle)

'Create a bulleted list style
Dim bulletedListStyle As ListStyle = New ListStyle(document,ListType.Bulleted)
bulletedListStyle.Name = "bulltedStyle"
bulletedListStyle.Levels(2).BulletCharacter = "\x002A"
bulletedListStyle.Levels(2).CharacterFormat.FontName = "Symbol"
document.ListStyles.Add(bulletedListStyle)

'Add a paragraph
Dim paragraph As Paragraph = section.AddParagraph()
paragraph.AppendText("Here's a Multi-Level Mixed List:")
paragraph.Format.AfterSpacing = 5f

'Add a paragraph and apply the numbered list style to it
paragraph = section.AddParagraph()
paragraph.AppendText("The first item")
paragraph.ListFormat.ApplyStyle("numberedStyle")
paragraph.ListFormat.ListLevelNumber = 0

'Add another five paragraphs and apply different list stype to them
paragraph = section.AddParagraph()
paragraph.AppendText("The first sub-item")
paragraph.ListFormat.ApplyStyle("numberedStyle")
paragraph.ListFormat.ListLevelNumber = 1

paragraph = section.AddParagraph()
paragraph.AppendText("The second sub-item")
paragraph.ListFormat.ListLevelNumber = 1
paragraph.ListFormat.ApplyStyle("numberedStyle")

paragraph = section.AddParagraph()
paragraph.AppendText("The first sub-sub-item")
paragraph.ListFormat.ApplyStyle("bulltedStyle")
paragraph.ListFormat.ListLevelNumber = 2

paragraph = section.AddParagraph()
paragraph.AppendText("The second sub-sub-item")
paragraph.ListFormat.ApplyStyle("bulltedStyle")
paragraph.ListFormat.ListLevelNumber = 2

paragraph = section.AddParagraph()
paragraph.AppendText("The second item")
paragraph.ListFormat.ApplyStyle("numberedStyle")
paragraph.ListFormat.ListLevelNumber = 0

'Save the document to file
document.SaveToFile("MultilevelMixedList.docx", FileFormat.Docx)
End Sub
End Class
End Namespace

以上便是如何在 Word 文档中插入列表的教程,如果您有其他问题也可以继续浏览本系列文章。

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

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

相关文章

【MaxCompute】基于Package跨项目访问资源实践

背景 目前随着公司业务的不断扩展,各个业务线的数据也越来越多,如果所有数据都集中管理比较错综复杂。MaxCompute的跨项目访问资源比较适合这样的场景。每个业务线创建对应的project,自行管理数据。如果有需要访问其他业务线数据的诉求&…

python3 爬虫相关学习6:html 和 css 简要回顾

因为要学爬虫,需要了解下html内容,我之前大概看过,这算是回顾下 以下html简单回顾内容,跟着这个地址的教程看了一遍,感谢 https://www.w3school.com.cn/html/html_jianjie.asp 下面是笔记 目录 1 html 2 常用标签…

文件缓冲区概念和磁盘的存储原理以及软硬链接

目录 缓冲区 缓冲区执行概念 C语言缓冲区存在于FILE结构体中 用户缓冲区刷新到OS缓冲区的策略 发生重定向 redir未重定向。 redir重定向。 磁盘的存储原理 细讲: Inode table Date block Inode bitmap Block bitmap Group Descriptor Table super Block 在目录…

脑机接口科普0020——是否鸡娃

本文禁止转载!!!! 现在有很多人开始给小孩早教,鸡娃,幼儿园就开始学英语,小学就开始学初中的内容,初中就开始学高中的内容。高中后开始拼命的做卷子,准备考大学,考完大学放纵。大学毕业后失业。 关于是否…

Matlab进阶绘图第21期—三角方块热图

三角方块热图,顾名思义,就是仅保留方块热图数据矩阵的上三角或下三角部分。 三角方块热图简单明了,通过不同颜色、不同大小的圆形表示数据的大小,可以更加直观地对矩阵数据进行可视化表达。 本文使用自制的trisquareheatmap小工…

ERROR: slow sql .. millis.

问题现象 运行过程中,查询页面报错,如下图: 404 NOT FOUND 排查日志,如下图: 查看数据库: 解决办法 在关联字段上添加索引,查询正常。

Linkage Mapper之Pinchpoint Mapper功能解析(含实际案例分析)

✅创作者:陈书予 🎉个人主页:陈书予的个人主页 🍁陈书予的个人社区,欢迎你的加入: 陈书予的社区 🌟专栏地址: Linkage Mapper解密数字世界链接 白尾兔(Lepus townsendii)的Pinchpoint映射器输出和栖息地浓集区效果图: 图片来源地址 <

【CANN训练营0基础赢满分秘籍】应用开发深入讲解→DVPP

1 数据预处理概述 1.1 典型使用场景 受网络结构和训练方式等因素的影响&#xff0c;绝大多数神经网络模型对输入数据都有格式上的限制。在计算视觉领域&#xff0c;这个限制大多体现在图像的尺寸、色域、归一化参数等。如果源图或视频的尺寸、格式等与网络模型的要求不—致时…

生命游戏的简单实现(c++代码)

今天上数模课&#xff0c;本来一如既往准备自习&#xff0c;但是&#xff0c;生命游戏——从前就在“人工智能”的书上看到过&#xff0c;今天一讲&#xff0c;发现如此简单。课上30min实现了一份简单的生命游戏代码/ 目录 前言 一、生命游戏 生命游戏的基本设置 生命游戏的规则…

WIN提权

win提权分为web和本地提权 web提权就是getshell后&#xff0c;权限是网站权限&#xff0c;要进行提权 本地提权是本地用户进行提权 本地用户的权限大于网站权限&#xff0c;所以本地提权成功概率比web提权概率大 因为我们做渗透测试&#xff0c;一般都是从网站入侵。所以大…

提高电商团队效率:必备的协作工具盘点

随着电商行业的快速发展&#xff0c;电商团队的规模和任务不断增加。然而&#xff0c;文件管理和文件协作方面的问题也随之出现。 电商行业可能存在的问题&#xff1a; 文件传输效率低下&#xff1a;电商团队需要频繁地共享和传输大量的文件&#xff0c;这会导致文件传输效率低…

快速上手,使用关键字驱动测试框架作为Web应用程序的自动化测试武器

目录 前言&#xff1a; 一、预备知识 二、关键字驱动测试框架 三、关键字驱动测试脚本 四、总结 前言&#xff1a; 自动化测试是软件测试中的重要环节之一&#xff0c;它可以帮助开发人员提高测试效率&#xff0c;节省时间和人力成本。随着互联网的发展&#xff0c;Web应…

互联网医院牌照申请|互联网医院申请流程

互联网医院牌照申请需要哪些资料和条件 随着互联网医疗的发展&#xff0c;越来越多的医疗机构开始申请互联网医院牌照。那么&#xff0c;互联网医院牌照的申请需要哪些资料和条件呢&#xff1f;以下是相关介绍。 申请资料 一、法定代表人身份证、执业医师资格证明 二、机构…

分布式事务解决方案Stata 整合 Spring Cloud + Nacos

1. 简介 Seata 是一款开源的分布式事务解决方案&#xff0c;致力于提供高性能和简单易用的分布式事务服务。Seata 将为用户提供了 AT、TCC、SAGA 和 XA 事务模式&#xff0c;为用户打造一站式的分布式解决方案。 2. Docker 安装 Seata 2.1 下载镜像 docker pull seataio/se…

js 如何定义类和引用

前言 JS是弱定义语言&#xff0c;最适合用于前端的数据处理。因为前端是数据的终点&#xff0c;用完就抛弃&#xff0c;所以前端一般都只是处理简单的业务逻辑。 但是有时候我们希望前端能进行一些复杂的处理&#xff0c;比如SqlLite本地缓存数据库&#xff0c;或者前端处理一…

低代码开发平台:打破IT与业务壁垒,实现高效协作

我们生活在一个离不开应用程序的世界&#xff1a;无论是个人消费者&#xff0c;还是企业运营&#xff0c;应用程序往往是最终的解决方案&#xff0c;它们可以是模块化的&#xff0c;也可以是一个整体&#xff0c;将数据、信息都链接起来&#xff0c;以提高生产生活的效率。 从企…

Fiora二次元Web在线聊天室源码搭建教程|详细

安卓客户端体验&#xff1a;fiora点击下载 网页版体验&#xff1a;fiora网页版 使用的系统是Linux Centos7.6 注意: 512M内存vps可能还需要先加一点虚拟内存&#xff0c;不然构建过程会失败。 开始安装 命令行安装方法 一、安装Nodejs curl -sL https://rpm.nodesource.com/…

chatgpt赋能Python-python_land

Python Land: 探索Python世界的终极指南 Python是一种具有广泛用途的高级编程语言&#xff0c;具有简单易学的特点&#xff0c;因此而备受青睐。Python Land是一个编程社区&#xff0c;该社区专注于提供Python编程有关的资源&#xff0c;以帮助有兴趣的人通过学习Python语言提…

HTTP中 Connection: keep-Alive与TCP中中keepalive有什么区别?

有小伙伴不明白keep-Alive和keepalive有什么区别&#xff1f;今天写这篇文章详细讲清楚&#xff01; HTTP是请求响应模型也就是客户端发起了请求&#xff0c;服务端才会返回响应&#xff0c;一来一回。 由于 HTTP 是基于 TCP 传输协议实现的&#xff0c;客户端与服务端要进行 H…

【中阳期货】国际期货与股票的区别

摘要:“股票之后就是期货”这句话生动地揭示了股票交易与期货交易的内在联系。期货交易的重要功能首先是有利于增强商品价格的预期性,为商业活动的顺利进行创造良好的条件。期货借助市场功能可以找到商品真正的市场价格,有利于制造厂商和生产者确定产品成本产品生产费用,以便顺…