- C++20 新特征:概念(Concepts)全面解析
jianglq
C++开发C++学习c++20开发语言
基本概念C++20引入了一个重要的新特性——概念(Concepts)。概念允许你在编写模板时指定模板参数(类型或非类型)应该满足的条件。这种约束使得编译器能够在编译时检查类型是否符合预期,从而提前发现错误,并给出更清晰的错误信息。概念是编译时多态的一种形式,它增强了模板编程的能力,使得代码更加健壮、可读性和可维护性更高。历史演变概念的想法早在C++的设计阶段就已经存在,但由于早期的技术限制和技术挑
- C++高级编程(2)-- 深入C++20新特性
给你一颗语法糖
C++高级编程c++开发语言
深入C++20新特性C++20,作为C++标准的最新迭代,为我们带来了一系列激动人心的新特性。这些特性不仅提高了开发效率、增强了代码安全性,而且让代码更加简洁易读。接下来,让我们深入了解C++20的一些关键新特性,并且探讨它们的高级用法和示例代码。概念(Concepts)概念是C++20中引入的强大的约束机制,它允许开发者为模板参数定义必须满足的接口条件。通过使用概念,我们可以编写更加安全、易理解
- ray.tune文档总结
AI大司马
python人工智能深度学习
ray.tune文档总结tune.runconfig指定超参数的搜索方法ConcurrencyLimiter搜索算法scheduler试验调度程序分析资源(并行、GPU、分布式)原文档请看这里https://docs.ray.io/en/latest/tune/key-concepts.htmltune.run执行超参数调整、用于管理实验,例如日志检查、提前停止tune.run(trainable
- 探索干净架构的杰作:Auctions拍卖平台实践
芮奕滢Kirby
探索干净架构的杰作:Auctions拍卖平台实践clean-architectureExampleprojectshowingoffclean/hexagonalarchitectureconceptsinPython项目地址:https://gitcode.com/gh_mirrors/cle/clean-architecture在软件开发的世界里,清晰的架构如同灯塔,引领着项目走向成功。今天,
- C++的模板简介
不适合写代码的程序员
c++模板开发语言C++11新特性
文章目录一、前言二、函数模板(FunctionTemplate)三、类模板(ClassTemplate)四、变参模板(VariadicTemplate)五、模板的递归与元编程六、模板的局限与陷阱七、常用模板的实例八、C++20的概念(Concepts)九、总结一、前言C++的模板(Template)是C++中一种强大的特性,它允许编写泛型程序,即编写不依赖于具体类型的代码。模板提供了一种机制,可以
- Prompt Engineering Concepts
初梦语雪
#NLPprompt
Introduction,ConceptsTextgenerationmodelsgenerationpre-trainedtransformers,GPTforshort.所以呢,前置知识是TransformerAssistants助手指的是能够为用户执行任务的实体;Embeddings是数据的一种vector形式,含有原来的数据的内容和/或意义;Tokens很常见,很基础的概念。Textgen
- ECMWF的IFS的观测内容文档
中遥科
气象气象预报ECMWFIFS
《ECMWF的IFS的观测文档》文档定义和描述欧洲中期天气预报中心(ECMWF)的集成预报系统(IFS)的观测部分的内容。今天先对每章节内容做概括j介绍,后续再作详细翻译。ECMWF的IFS的观测内容文档1.观测总览(Overview:theobservationworld)1.1引言(Introduction)1.2概念(Concepts)1.3数据流通过处理和筛选(Dataflowthroug
- oracle数据库中标识列,Oracle数据库标识列
Setor
oracle数据库中标识列
Oracle数据块结构概述整理自Oracle11gR2官方文档《concepts》001概述Oracle数据库以数据块(也称为Oracle块或页)为单位,来管理数据库数据文件中的逻辑存储空间。数据块是数据库I/O的最小单位。002数据块和操作系统块在物理级别,...文章苍雪明南2016-01-18893浏览量db_name、db_domain、service_name、global_name、in
- Spring Data MongoDB - Reference Documentation
chuifuhuo6864
数据库javajson
PrefaceTheSpringDataMongoDBprojectappliescoreSpringconceptstothedevelopmentofsolutionsusingtheMongoDBdocumentstyledatastore.Weprovidea"template"asahigh-levelabstractionforstoringandqueryingdocuments.Y
- 关于内存相关的梳理
练习本
常用知识点分类汇总android缓存
1关键字总结(lowmemory,anrin)2知识储备虚拟机原理垃圾回收算法又包含标记和清除两种算法标记:程序计数器-已过时,可达性分析具体可见http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Fconcepts%2Fgcroots.html&cp=37_2_3清除:标记-清除算法(mark-swee
- K8S-7--K8s资源对象(API/pod探针/sevice/volume/Statefulset/DaemonSet/PV/PVC/)/结合ceph
哈密瓜小贼
k8skubernetesdocker
一、K8s资源对象https://kubernetes.io/zh/docs/concepts/workloads/controllers/资源管理核心概念k8s的设计理念-分层架构:http://docs.kubernetes.org.cn/251.html#k8s分层架构云原生生态系统:在接口层之上的庞大容器集群管理调度的生态系统,可以划分为两个范畴Kubernetes外部:日志、监控、配置管
- imposm.parser
cyqyong
openstreetmaposmplanet.osmimposm.parser
ConceptsTouseimposm.parseryouneedtounderstandthreebasicconcepts:Types,CallbacksandFilter为了使用imposm.parser,你需要理解其中的三个概念:类型,回调函数和过滤器Types类型NoteInthisdocumentNode,Way,RelationwithacapitalrefertotheOSMtyp
- Rule Engine--规则引擎
cqboy
JAVA引擎traversalsemanticsystemjavavariables
来自:http://udoo.51.net/mt/archives/000010.htmlThedroolsengineusesamodifiedformoftheRetealgorithmcalledtheRete-OOalgorithm.InternallyitoperatesusingthesameconceptsandmethodsasForgy'soriginalbutaddssomen
- Elasticsearch—概念、安装和配置
Sunflow007
13.jpg前言:Elasticsearch是一款很火热的,很优秀的,基于lucene的开源的分布式的搜索引擎,话不多说,本篇文章主要是Elasticsearch基本概念介绍、安装和配置。Elasticsearch的基本概念官方文档——BasicConcepts|ElasticsearchReference[6.4]|Elastic我们在学习关系型数据库和服务器的时候,接触到了一些概念如:data
- c++ 新特性 概念和约束 “无规矩 难成方圆”
4399.9855
C++新特性c++开发语言
本篇文章就聊一下C++新特性概念和约束概念和约束的初步了解:在C++中,概念(Concepts)是一种用于约束模板参数的机制。它们允许我们在使用模板时指定类型必须满足的条件,从而增强代码的可读性、可维护性和安全性。通过定义概念,我们可以规定模板参数必须具备特定的属性、行为或操作符重载。例如,我们可以定义一个"可迭代"的概念,要求类型必须具有begin()和end()成员函数以支持范围遍历。然后,在
- 这里的*号实际表示就是RAC中所有实例都使用
weixin_30732487
数据库php操作系统
您的位置:ITPUB个人空间»cc59的个人空间»日志发布新日志我的日志我的足迹我的收藏unix/linuxHA随笔backup&restoreperformancetuningTroubleshootConcepts&BasicRACDiagnosticsScript2007-02-1500:00:00frommetalink:ThisscriptisbrokenupintodifferentS
- Flink-Concepts-Programming Model
耳边的火
多级抽象flink为开发streaming/batch应用提供了不同层级的抽象。最底层的抽象提供了有状态的流(statefulstreaming)。它通过ProcessFunction内置在DataStreamAPI中。它允许用户自由的处理一个或多个流中的数据,并且使用统一的故障容忍的状态(state)。除此之外,用户可以注册事件时间(eventtime)的回调与处理时间(processingti
- 论文精读的markdown模板——以及用obsidian阅读网页资料做笔记
东方-教育技术博主
笔记
#TheInvestigationofS-PChartAnalysisontheTestEvaluationsofEqualityAxiomConceptsforSixthGradersTags:#/unread本体论:背景起源和发展包含要素###可关联要素###逻辑意义:方法论:方法论是一种以解决问题为目标的理论体系或系统,通常涉及对问题阶段、任务、工具、方法技巧的论述。方法论会对一系列具体的方
- Bounded Context
hshpy
java
BoundedContextisatermusedinDomain-DrivenDesign(DDD)todefinethescopeorboundarieswithinwhichaparticularmodelisvalid.Ithelpsinavoidingambiguityandmaintainingaclearunderstandingoftheconceptsusedindifferen
- UserAggregates, Entities, and Value Objects
hshpy
数据库
theconceptsofaggregates,entities,andvalueobjectsusingasimpleexamplefromthedomainofe-commerce:anonlineshoppingcartsystem.Aggregates:Aggregatesareclustersofdomainobjectsthataretreatedasasingleunit.Theyh
- Git Tutorial
玩家翁伟
OverviewgitconceptshandsondemoworkflowGitConceptGitisafreeandopensourcedistributedversioncontrolsystemdesignedtohandleeverythingfromsmalltoverylargeprojectswithspeedandefficiency.Keywordsdistributedve
- Oracle PL/SQL Programming 第6章:Exception Handlers 读书笔记
dingdingfish
Oracle数据库开发OraclePL/SQLoraclesqldatabaseplsqlprogramming
总的目录和进度,请参见开始读OraclePL/SQLProgramming第6版无论如何努力,您的程序中总会再出现一个错误。但我们仍应实现调试和保护我们的程序。PL/SQL提供了一种强大而灵活的方法来捕获和处理错误。Exception-HandlingConceptsandTerminology在PL/SQL中,任何类型的错误都被视为例外:程序中不应发生的异常情况。例外可能是以下之一:系统生成的错
- 【CSS422】Programming Language Design
iuww1314
学习设计语言
CSS422FinalProjectThumb-2ImplementationWorkofMemory/Time-RelatedCStandardLibraryFunctions.1.ObjectiveYou’llunderstandthefollowingconceptsattheARMassemblylanguagelevelthroughthisfinalprojectthatimpleme
- 《Django+React前后端分离项目开发实战:爱计划》 01 项目整体概述
Python私教
DjangoReactdjangoreact.jspython
01Introduction《Django+React前后端分离项目开发实战:爱计划》01项目整体概述WelcometoBeginningDjangoAPIwihReact!ThisbookfocusesontheykeytasksandconceptstogetyoustartedtolearnandbuildaRESTFulwebAPIwithDjangoRESTFramework,oneof
- scrap_Web Scrap Scotch:节点方式
culiu9261
pythonjavascriptjavajs编程语言ViewUI
scrapAlotofnewwebtechnologiesanddesignparadigmshaveemergedinthelastcoupleofyears.Someprogramminglanguagesarebeginningtogainincreasingpopularity.It'sverylikelytohaveheardaboutconceptslikeresponsivedesi
- Hadoop分布式计算实验踩坑实录及小结
小童同学_
HIThadoop分布式ubuntujava
目录Hadoop分布式计算实验踩坑实录及小结踩坑实录Hadoop学习Hadoop简介HDFSSomeconceptsMapReduce主要配置文件集群搭建来源与引用Hadoop分布式计算实验踩坑实录及小结踩坑实录单机jdk配置Ubuntu下安装jdk11,不熟悉apt-get的默认目录及目录配置,直接在Oracle找了Linux的压缩包在虚拟机上解压,解压到指定目录后配一下java环境变量。/et
- 【RL】Basic Concepts in Reinforcement Learning
大白菜~
人工智能机器学习算法人工智能深度学习
Lecture1:BasicConceptsinReinforcementLearningMDP(MarkovDecisionProcess)KeyElementsofMDPSetState:ThesetofstatesS\mathcal{S}S(状态S\mathcal{S}S的集合)Action:thesetofactionsA(s)\mathcal{A}(s)A(s)isassociatedf
- 日入一词_83:encompass
cppUncleSix
Eachdatabase—andmorespecifically,eachtable—hasdifferentcharacteristicsthatmayforceyoutoadopttechniquesthatencompassoneormoreoftheconceptsexplainedinthischapter.verb/ɛnˈkʌmpəs/1toincludeawiderangeofide
- 跟我学c++中级篇——再谈Concepts
fpcc
C++11c++开发语言
一、理解Concepts可能很多的c++程序员到职业生涯结束,都没有真正写过模板程序,有一些甚至都没有听说过模板。这个很正常,特别是一些参与c开发的c++程序员更是如此。不过,c++的标准迭代比较快,导致最近其又热了起来,或多或少的一些程序员开始看看模板这个东西。模板这个技术如果真的用得不是多复杂其实也没啥影响。但是,这玩意儿比较恶心的一点就是,出了错,报得错误非常的莫名其妙。这就导致可能一个很小
- flex 布局详解
LilyLaw
关于flex具体是什么在此不赘述,官方文档在此:https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox我自己通过实例总结如下:flex布局主要有两大块:1.父元素;2.子元素把这两大块搞明白就算吃透flex布局了(接下来的实例中,我会将完整代码贴出来,大家可
- 对股票分析时要注意哪些主要因素?
会飞的奇葩猪
股票 分析 云掌股吧
众所周知,对散户投资者来说,股票技术分析是应战股市的核心武器,想学好股票的技术分析一定要知道哪些是重点学习的,其实非常简单,我们只要记住三个要素:成交量、价格趋势、振荡指标。
一、成交量
大盘的成交量状态。成交量大说明市场的获利机会较多,成交量小说明市场的获利机会较少。当沪市的成交量超过150亿时是强市市场状态,运用技术找综合买点较准;
- 【Scala十八】视图界定与上下文界定
bit1129
scala
Context Bound,上下文界定,是Scala为隐式参数引入的一种语法糖,使得隐式转换的编码更加简洁。
隐式参数
首先引入一个泛型函数max,用于取a和b的最大值
def max[T](a: T, b: T) = {
if (a > b) a else b
}
因为T是未知类型,只有运行时才会代入真正的类型,因此调用a >
- C语言的分支——Object-C程序设计阅读有感
darkblue086
applec框架cocoa
自从1972年贝尔实验室Dennis Ritchie开发了C语言,C语言已经有了很多版本和实现,从Borland到microsoft还是GNU、Apple都提供了不同时代的多种选择,我们知道C语言是基于Thompson开发的B语言的,Object-C是以SmallTalk-80为基础的。和C++不同的是,Object C并不是C的超集,因为有很多特性与C是不同的。
Object-C程序设计这本书
- 去除浏览器对表单值的记忆
周凡杨
html记忆autocompleteform浏览
&n
- java的树形通讯录
g21121
java
最近用到企业通讯录,虽然以前也开发过,但是用的是jsf,拼成的树形,及其笨重和难维护。后来就想到直接生成json格式字符串,页面上也好展现。
// 首先取出每个部门的联系人
for (int i = 0; i < depList.size(); i++) {
List<Contacts> list = getContactList(depList.get(i
- Nginx安装部署
510888780
nginxlinux
Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源
- java servelet异步处理请求
墙头上一根草
java异步返回servlet
servlet3.0以后支持异步处理请求,具体是使用AsyncContext ,包装httpservletRequest以及httpservletResponse具有异步的功能,
final AsyncContext ac = request.startAsync(request, response);
ac.s
- 我的spring学习笔记8-Spring中Bean的实例化
aijuans
Spring 3
在Spring中要实例化一个Bean有几种方法:
1、最常用的(普通方法)
<bean id="myBean" class="www.6e6.org.MyBean" />
使用这样方法,按Spring就会使用Bean的默认构造方法,也就是把没有参数的构造方法来建立Bean实例。
(有构造方法的下个文细说)
2、还
- 为Mysql创建最优的索引
annan211
mysql索引
索引对于良好的性能非常关键,尤其是当数据规模越来越大的时候,索引的对性能的影响越发重要。
索引经常会被误解甚至忽略,而且经常被糟糕的设计。
索引优化应该是对查询性能优化最有效的手段了,索引能够轻易将查询性能提高几个数量级,最优的索引会比
较好的索引性能要好2个数量级。
1 索引的类型
(1) B-Tree
不出意外,这里提到的索引都是指 B-
- 日期函数
百合不是茶
oraclesql日期函数查询
ORACLE日期时间函数大全
TO_DATE格式(以时间:2007-11-02 13:45:25为例)
Year:
yy two digits 两位年 显示值:07
yyy three digits 三位年 显示值:007
- 线程优先级
bijian1013
javathread多线程java多线程
多线程运行时需要定义线程运行的先后顺序。
线程优先级是用数字表示,数字越大线程优先级越高,取值在1到10,默认优先级为5。
实例:
package com.bijian.study;
/**
* 因为在代码段当中把线程B的优先级设置高于线程A,所以运行结果先执行线程B的run()方法后再执行线程A的run()方法
* 但在实际中,JAVA的优先级不准,强烈不建议用此方法来控制执
- 适配器模式和代理模式的区别
bijian1013
java设计模式
一.简介 适配器模式:适配器模式(英语:adapter pattern)有时候也称包装样式或者包装。将一个类的接口转接成用户所期待的。一个适配使得因接口不兼容而不能在一起工作的类工作在一起,做法是将类别自己的接口包裹在一个已存在的类中。 &nbs
- 【持久化框架MyBatis3三】MyBatis3 SQL映射配置文件
bit1129
Mybatis3
SQL映射配置文件一方面类似于Hibernate的映射配置文件,通过定义实体与关系表的列之间的对应关系。另一方面使用<select>,<insert>,<delete>,<update>元素定义增删改查的SQL语句,
这些元素包含三方面内容
1. 要执行的SQL语句
2. SQL语句的入参,比如查询条件
3. SQL语句的返回结果
- oracle大数据表复制备份个人经验
bitcarter
oracle大表备份大表数据复制
前提:
数据库仓库A(就拿oracle11g为例)中有两个用户user1和user2,现在有user1中有表ldm_table1,且表ldm_table1有数据5千万以上,ldm_table1中的数据是从其他库B(数据源)中抽取过来的,前期业务理解不够或者需求有变,数据有变动需要重新从B中抽取数据到A库表ldm_table1中。
- HTTP加速器varnish安装小记
ronin47
http varnish 加速
上午共享的那个varnish安装手册,个人看了下,有点不知所云,好吧~看来还是先安装玩玩!
苦逼公司服务器没法连外网,不能用什么wget或yum命令直接下载安装,每每看到别人博客贴出的在线安装代码时,总有一股羡慕嫉妒“恨”冒了出来。。。好吧,既然没法上外网,那只能麻烦点通过下载源码来编译安装了!
Varnish 3.0.4下载地址: http://repo.varnish-cache.org/
- java-73-输入一个字符串,输出该字符串中对称的子字符串的最大长度
bylijinnan
java
public class LongestSymmtricalLength {
/*
* Q75题目:输入一个字符串,输出该字符串中对称的子字符串的最大长度。
* 比如输入字符串“google”,由于该字符串里最长的对称子字符串是“goog”,因此输出4。
*/
public static void main(String[] args) {
Str
- 学习编程的一点感想
Cb123456
编程感想Gis
写点感想,总结一些,也顺便激励一些自己.现在就是复习阶段,也做做项目.
本专业是GIS专业,当初觉得本专业太水,靠这个会活不下去的,所以就报了培训班。学习的时候,进入状态很慢,而且当初进去的时候,已经上到Java高级阶段了,所以.....,呵呵,之后有点感觉了,不过,还是不好好写代码,还眼高手低的,有
- [能源与安全]美国与中国
comsci
能源
现在有一个局面:地球上的石油只剩下N桶,这些油只够让中国和美国这两个国家中的一个顺利过渡到宇宙时代,但是如果这两个国家为争夺这些石油而发生战争,其结果是两个国家都无法平稳过渡到宇宙时代。。。。而且在战争中,剩下的石油也会被快速消耗在战争中,结果是两败俱伤。。。
在这个大
- SEMI-JOIN执行计划突然变成HASH JOIN了 的原因分析
cwqcwqmax9
oracle
甲说:
A B两个表总数据量都很大,在百万以上。
idx1 idx2字段表示是索引字段
A B 两表上都有
col1字段表示普通字段
select xxx from A
where A.idx1 between mmm and nnn
and exists (select 1 from B where B.idx2 =
- SpringMVC-ajax返回值乱码解决方案
dashuaifu
AjaxspringMVCresponse中文乱码
SpringMVC-ajax返回值乱码解决方案
一:(自己总结,测试过可行)
ajax返回如果含有中文汉字,则使用:(如下例:)
@RequestMapping(value="/xxx.do") public @ResponseBody void getPunishReasonB
- Linux系统中查看日志的常用命令
dcj3sjt126com
OS
因为在日常的工作中,出问题的时候查看日志是每个管理员的习惯,作为初学者,为了以后的需要,我今天将下面这些查看命令共享给各位
cat
tail -f
日 志 文 件 说 明
/var/log/message 系统启动后的信息和错误日志,是Red Hat Linux中最常用的日志之一
/var/log/secure 与安全相关的日志信息
/var/log/maillog 与邮件相关的日志信
- [应用结构]应用
dcj3sjt126com
PHPyii2
应用主体
应用主体是管理 Yii 应用系统整体结构和生命周期的对象。 每个Yii应用系统只能包含一个应用主体,应用主体在 入口脚本中创建并能通过表达式 \Yii::$app 全局范围内访问。
补充: 当我们说"一个应用",它可能是一个应用主体对象,也可能是一个应用系统,是根据上下文来决定[译:中文为避免歧义,Application翻译为应
- assertThat用法
eksliang
JUnitassertThat
junit4.0 assertThat用法
一般匹配符1、assertThat( testedNumber, allOf( greaterThan(8), lessThan(16) ) );
注释: allOf匹配符表明如果接下来的所有条件必须都成立测试才通过,相当于“与”(&&)
2、assertThat( testedNumber, anyOf( g
- android点滴2
gundumw100
应用服务器android网络应用OSHTC
如何让Drawable绕着中心旋转?
Animation a = new RotateAnimation(0.0f, 360.0f,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,0.5f);
a.setRepeatCount(-1);
a.setDuration(1000);
如何控制Andro
- 超简洁的CSS下拉菜单
ini
htmlWeb工作html5css
效果体验:http://hovertree.com/texiao/css/3.htmHTML文件:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>简洁的HTML+CSS下拉菜单-HoverTree</title>
- kafka consumer防止数据丢失
kane_xie
kafkaoffset commit
kafka最初是被LinkedIn设计用来处理log的分布式消息系统,因此它的着眼点不在数据的安全性(log偶尔丢几条无所谓),换句话说kafka并不能完全保证数据不丢失。
尽管kafka官网声称能够保证at-least-once,但如果consumer进程数小于partition_num,这个结论不一定成立。
考虑这样一个case,partiton_num=2
- @Repository、@Service、@Controller 和 @Component
mhtbbx
DAOspringbeanprototype
@Repository、@Service、@Controller 和 @Component 将类标识为Bean
Spring 自 2.0 版本开始,陆续引入了一些注解用于简化 Spring 的开发。@Repository注解便属于最先引入的一批,它用于将数据访问层 (DAO 层 ) 的类标识为 Spring Bean。具体只需将该注解标注在 DAO类上即可。同时,为了让 Spring 能够扫描类
- java 多线程高并发读写控制 误区
qifeifei
java thread
先看一下下面的错误代码,对写加了synchronized控制,保证了写的安全,但是问题在哪里呢?
public class testTh7 {
private String data;
public String read(){
System.out.println(Thread.currentThread().getName() + "read data "
- mongodb replica set(副本集)设置步骤
tcrct
javamongodb
网上已经有一大堆的设置步骤的了,根据我遇到的问题,整理一下,如下:
首先先去下载一个mongodb最新版,目前最新版应该是2.6
cd /usr/local/bin
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.0.tgz
tar -zxvf mongodb-linux-x86_64-2.6.0.t
- rust学习笔记
wudixiaotie
学习笔记
1.rust里绑定变量是let,默认绑定了的变量是不可更改的,所以如果想让变量可变就要加上mut。
let x = 1; let mut y = 2;
2.match 相当于erlang中的case,但是case的每一项后都是分号,但是rust的match却是逗号。
3.match 的每一项最后都要加逗号,但是最后一项不加也不会报错,所有结尾加逗号的用法都是类似。
4.每个语句结尾都要加分