- 完美调试android-goldfish(linux kernel) aarch64的方法
goodcat666
pwn_cve_kernelandroidlinux运维linuxpwn
环境要求Macm1Macm1中虚拟机安装aarch64ubuntu22.02Macm1安装OrbStack,并在其中安装ubuntu20.04(x86_64)构建文件系统在虚拟机aarch64ubuntu22.02中构建安装必要的库sudoapt-getinstalllibncurses5-devbuild-essentialgitbisonflexlibssl-devdtcbisonflexgc
- Android-P CameraSerivce
OneSea
Android系统Frameworkandroidframework
0前言本文重点分析Android-P的CameraService实现。验证:Goldfish模拟器1定义图1.1CameraServiceICameraServiceframeworks/av/camera/aidl/android/hardware/ICameraService.aidlBnCameraServiceout/soong/.intermediates/frameworks/av/c
- Android模拟器的linux内核源码的下载
qfh-coder
Androidframeworkandroidlinux运维
文章目录Android模拟器的linux内核源码的下载Android模拟器的linux内核源码的下载gitclonehttps://aosp.tuna.tsinghua.edu.cn/android/kernel/goldfish.git自己新建一个文件夹存放内核代码,命名随意。切换一下分支就有东西了切换到下面这个分支
- ImageNet中1000类目标的编号所对应的具体类别
港漂青铜康
人工智能深度学习
ImageNet20121000个类名称和编号。ILSVRC2012_img_train.tar这个文件解压出来都是一些nxxx这样的目录,也不知道他对应是哪个类,通过找caffe_ilsvrc12.tar.gz能把这些类对应出来0n01440764鱼,tench,Tincatinca1n01443537鱼,goldfish,Carassiusauratus2n01484850鱼,greatwhi
- 【绮罗幽香】20180218学习力践行D121
幽香_5126
过年啊!白天就太放纵了!但是晚上睡前程序不会变。牛津树三本,还玩了自制卡片A_F,抽中哪个就要读出来,连单词都要读。结果最熟悉的苹果想半天想不出来,气的说自己脑子有问题(跟我学的)。C开头的car和cat,不用提醒就会,F的fish记成goldfish。玩到最后,还闲卡片少,看来上班的时候要多画点了!给我读了小熊宝宝我会穿短裤了,又读了手指摇几篇。都都数学20分钟。
- 编译安卓系统源码时异常处理
造 山
androidlinuxubuntu
编译安卓系统源码时异常处理提示语法错误,如下所示:FAILED:out/target/product/generic/system-qemu.img/bin/bash-c"(exportSGDISK=out/host/linux-x86/bin/sgdiskSIMG2IMG=out/host/linux-x86/bin/simg2img;device/generic/goldfish/tools/
- 小白养鱼记1
后知后觉的蜗牛
家里小朋友上幼儿园中班了,读英语时候读到fishtank,goldfish眼睛就充满渴望看着我,爸爸,我要养鱼……真是无巧不成书,亲戚说家里有抵账的鱼缸,可自己去拉过来,哈,入坑之路开始了!80鱼缸找货拉拉帮忙拉过来,几公里运费24,搬运费30,壮实的小伙跟我一起搬进家门,累的气都喘不过来,鱼缸真是太重了!!!!我更是话都说不出来,又给了他25块钱,算是补偿一下吧,小伙说别养贵鱼,不然费钱……好了
- android ----- goldfish内核编译
大哥,请小心
Androidandroid
学习总纲:Android10硬件抽象层(HAL)概要介绍和学习计划编译环境:-android版本-android-10.0.0_r41-架构-aosp_x86_64-eng-内核分支:android-goldfish-4.14-gchips编译资源参考视频教程:https://b23.tv/BV1sm4y1S7RE编译流程前提条件:已编译好android源码本文选择了android-10.0.0_
- ImageNet1000分类,英文原版,中文翻译版
骨力
python数据挖掘人工智能
在训练模型时,可以用imagenet中的图片进行分类学习,imagenet中分类介绍一、官网网址imagenet官网网址1-398:动物399-924:物品925-1000:食物二、官方英文版分类n01440764tench,Tincatincan01443537goldfish,Carassiusauratusn01484850greatwhiteshark,whiteshark,man-eat
- Dog and the New Pet
ff47cbfb67b4
今日学习内容:Lesson2DogandtheNewPet1.需要掌握的单词:dog/turtle/cat/2.需要了解的单词:hamster/bird/goldfish/canary(金丝雀[kə’neri])3.需要掌握的重点句型:Doyouhaveapet?Ilikecats/dogs/...Icanactlikeadog/turtle/fish/bird.Canyoukeepcats/ti
- 车载技术—CarFramework框架【AOSP 源码编译】
程序猿会指北
Android车载技术android开发技术androidAndroid开发移动开发程序员车载开发
repo安卓源码包含数百个git库,googole开发了repo工具来管理安卓版本库。repo使用python对git进行了封装。内核源码AOSP源码中不包含内核源码,需要单独下载。common通用的linux内核源码msm用于高通MSM芯片的linux内核源码goldfish是用于安卓虚拟机的linux内核源码编译AOSP能做什么定制Android系统将Android系统刷入设备将整个系统源码导
- Binder系统中的数据结构(Android系统源代码情景分析学习笔记)
ting说你跳
Androidandroid
structbinder_workkernel/goldfish/drivers/staging/android/binder.cstructbinder_work{structlist_headentry;enum{BINDER_WORK_TRANSACTION=1,BINDER_WORK_TRANSACTION_COMPLETE,BINDER_WORK_NODE,BINDER_WORK_DEA
- ImageNet数据集的0到999Label对应的类别分别是什么
qwq_xcyyy
水印代码开源github计算机视觉
参考文件GitHub上的json文件LabelMeaning0[‘n01440764’,‘tench’]1[‘n01443537’,‘goldfish’]2[‘n01484850’,‘great_white_shark’]3[‘n01491361’,‘tiger_shark’]4[‘n01494475’,‘hammerhead’]5[‘n01496331’,‘electric_ray’]6[‘n0
- ImageNet的1000个分类名称
It-is-me!
DeepLearningImageNet
0:'tench,Tincatinca',1:'goldfish,Carassiusauratus',2:'greatwhiteshark,whiteshark,man-eater,man-eatingshark,Carcharodoncarcharias',3:'tigershark,Galeocerdocuvieri',4:'hammerhead,hammerheadshark',5:'ele
- imagenet数据集类别标签对应
、Edgar
#其他
原文请见这里{"0":["tench","Tincatinca"],"1":["goldfish","Carassiusauratus"],"2":["greatwhiteshark","whiteshark","man-eater","man-eatingshark","Carcharodoncarcharias"],"3":["tigershark","Galeocerdocuvieri"],
- IMAGENET1000标签
weixin_34304013
pythonjsonshell
{0:'tench,Tincatinca',1:'goldfish,Carassiusauratus',2:'greatwhiteshark,whiteshark,man-eater,man-eatingshark,Carcharodoncarcharias',3:'tigershark,Galeocerdocuvieri',4:'hammerhead,hammerheadshark',5:'el
- 小试牛刀——pytorch实现小猫小狗分类
naomicui
pytorch分类小猫小狗pytorch预训练模型
#-*-coding:utf-8-*-__author__='cui'importtorchimporttorchvisionfromPILimportImageimportnumpyasnpfromtorchvisionimporttransformsasTclass_dict={0:'tench,Tincatinca',1:'goldfish,Carassiusauratus',2:'grea
- Imagenet的中英对应分类
小刘同学_
计算机视觉对抗样本机器学习CVImagenet数据集
因为以后可能有一段时间要和CV打交道,所以现在先把分类存下来,方便做targeted的任务时翻阅使用0:'tench,Tincatinca',丁鲷(鱼)1:'goldfish,Carassiusauratus',金鱼,鲫鱼2:'greatwhiteshark,whiteshark,man-eater,man-eatingshark,Carcharodoncarcharias',大白鲨3:'tige
- ImageNet Large Scale Visual Recognition Competition (ILSVRC)-ImageNet数据集标签名称中英文对照
bigcindy
人工智能数据集ImageNetILSVRC.数据标签中文标签名称
0n01440764tench鱼1n01443537goldfish鱼2n01484850great_white_shark鱼3n01491361tiger_shark鱼4n01494475hammerhead鱼5n01496331electric_ray鱼6n01498041stingray鱼7n01514668cock鸡8n01514859hen鸡9n01518878ostrich鸵鸟10n0
- [数据集][转载]ImageNet 2012 1000分类名称和编号
FL1623863129
深度学习深度学习
0n01440764鱼,tench,Tincatinca1n01443537鱼,goldfish,Carassiusauratus2n01484850鱼,greatwhiteshark,whiteshark,man-eater,man-eatingshark,Carcharodoncarcharias3n01491361鱼,tigershark,Galeocerdocuvieri4n0149447
- 模拟器:环境搭建
九九叔
https://blog.csdn.net/qq_25810695/article/details/85096354https://lug.ustc.edu.cn/wiki/mirrors/help/aospjava版本如何设置修改/etc/profileAndroid原生模拟器叫什么名字叫GoldFish,基于qume修改的。使用的是哪个内核?prebuilt/android-arm/kerne
- The Goldfish
请叫我鱼君
Itallstartedwhenmygoldfishstartedtalkingtome.HisnameisFrank,atleastheaskedmetocallhimthat.Itwasafoggymorning,whenIrubbedMysleepyeyesanddraggedmyelftowardthefishtankinThelivingroom,Iheardaman'svoice.“H
- Ubuntu 16.04 64bit 编译 Android 4.4 内核
孙肖依
很久之前编译好了的忘了发……解释一下为什么没有配图,因为在ubuntu系统下编译在windows下整理文档再粘图觉得麻烦……本文编译的goldfish-3.4内核。(1)在源码目录中创建kernel文件夹,进入到kernel内,用git命令下载Goldfish的sourcecode代码包gitclonehttps://android.googlesource.com/kernel/goldfish
- Android Goldfish详解之一
Jimmy8618
AndroidGoldfish
一.Goldfish介绍Goldfish是一种虚拟的ARM处理器,在Android的仿真环境中使用。Android模拟器通过运行它来运行arm926t指令集(arm926t属于armv5构架,goldfish处理器有ARMv5和ARMv7两个版本,在一般情况下,使用ARMv5的版本即可)。编译生成的linux内核镜像在android的模拟器中使用。启动模拟器时,LinuxKernel镜像默认使用:
- android adb shell 的ls命令出现奇怪的字符
qidizi
androidadbls
/#lsls[1;34macct[0m[1;32minit[0m[1;34msd-ext[0m[1;34mcache[0m[1;32minit.goldfish.rc[0m[1;36msdcard[0m[1;34mconfig[0m[1;32minit.lenovo.rc[0m[1;34msys[0m[1;36md[0m[1;32minit.rc[0m[1;34msystem[0m[1;34mda
- init.rc到底在做些什么
myxmu
linux设备驱动
当我们只是按下电源键开机时,会进入正常启动模式。Secondarystagebootloader会从boot分区开始启动。Boot分区的格式是固定的,首先是一个头部,然后是Linux内核,最后是用作根文件系统的ramdisk。当Linux内核启动完毕后,就开始执行根文件系统中的init程序,init程序会读取启动脚本文件(init.rc和init.goldfish)。现在就来说一下,init.rc
- Ubuntu 16.04 64bit 编译 Android 4.4 内核
Morphling0809
Android自学之路
本文编译的goldfish-3.4内核。(1)在源码目录中创建kernel文件夹,进入到kernel内,用git命令下载Goldfish的sourcecode代码包gitclonehttps://android.googlesource.com/kernel/goldfish.git(2)然后用以下命令选择指定的版本并复制代码cdgoldfishgitbranch-a此处可以看见各种版本的gold
- android 模拟器命令 转载
sfrysh
Android
1、Android模拟器介绍Android中提供了一个模拟器来模拟ARM核的移动设备。Android的模拟器是基于QEMU开发的,QEMU是一个有名的开源虚拟机项目(详见http://bellard.org/qemu/),它可以提供一个虚拟的ARM移动设备。Android模拟器被命名为goldfish,用来模拟包括下面一些功能的ARMSoC:*ARM926ej-SCPU*Thumbsupport*
- Android Linux换核 + goldfish环境搭建
nobleman__
Android学习
文章目录前言一、环境准备0.硬件准备1.KVM2.源码准备2.1goldfish2.2交叉编译工具3.AndroidStudio4.Java二、编译内核前言这篇博客主要记录下利用Android模拟器,在Android7.1.1系统下换goldfish3.10-n-dev核的过程,在此之前参考了网上大大小小的换核教程,没有那种一次性走到头的,可能是时间太久,多多少少都有点bug。所以打算整理下,如果
- Android系统匿名共享内存(Anonymous Shared Memory)Java调用接口分析
jltxgcy
Android源码分析
一、Ashmem驱动程序~/Android/kernel/goldfish----include----linux----ashmem.h----mm----ashmem.c驱动程序详解请看《Android系统源代码情景分析》,作者罗升阳。二、运行时库cutils的匿名共享内存访问接口~/Android/system/core----libcutils----ashmem-dev.c详解请看《An
- 对股票分析时要注意哪些主要因素?
会飞的奇葩猪
股票 分析 云掌股吧
众所周知,对散户投资者来说,股票技术分析是应战股市的核心武器,想学好股票的技术分析一定要知道哪些是重点学习的,其实非常简单,我们只要记住三个要素:成交量、价格趋势、振荡指标。
一、成交量
大盘的成交量状态。成交量大说明市场的获利机会较多,成交量小说明市场的获利机会较少。当沪市的成交量超过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.每个语句结尾都要加分