02 2022 档案
摘要:1、用文件流判断 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text;
阅读全文
摘要:最近程序上用到了计时功能,对某个模块进行计时,暂停的时候模块也需要暂停,启动的时候计时继续 用到了Stopwatch Stopwatch的命名空间是using System.Diagnostics; using System; using System.Collections.Generic; us
阅读全文
摘要:首先我们先了解样本标准差和总体标准差: 样本标准差=方差的算术平方根=s=sqrt(((x1-x)^2 +(x2-x)^2 +......(xn-x)^2)/(n-1)) 总体标准差=σ=sqrt(((x1-x)^2 +(x2-x)^2 +......(xn-x)^2)/n ) 下面是简单的区别:
阅读全文
摘要:使用C#对XML文件进行操作,包括生成一个XML文档,以及读取XML文档中的内容,修改某个元素中的内容 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System
阅读全文
摘要:XML文档内容: 1、文档声明2、元素=标签 文档总至少要有一个根元素3、属性4、注释 <!--注释内容-->5、CDATA区、特殊字符 <![CDATA[不想解析的内容]]> 手动用记事本创建一个xml文档,打开记事本,输入内容,然后保存为xml,编码格式选择utf-8 <?xml version
阅读全文