From 2c4723c5dae51f8de4c5316d2b08f82872f8c785 Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Mon, 6 May 2019 09:52:51 +0800 Subject: [PATCH] =?UTF-8?q?Update=20Scala=E5=9F=BA=E6=9C=AC=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=B1=BB=E5=9E=8B=E5=92=8C=E8=BF=90=E7=AE=97=E7=AC=A6?= =?UTF-8?q?.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/Scala基本数据类型和运算符.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notes/Scala基本数据类型和运算符.md b/notes/Scala基本数据类型和运算符.md index 8145c54..ca76f3a 100644 --- a/notes/Scala基本数据类型和运算符.md +++ b/notes/Scala基本数据类型和运算符.md @@ -165,13 +165,13 @@ res15: Int = 3 Int类中包含了多个重载的`+`方法,用于分别接收不同类型的参数。 -
+
### 3.2 运算符优先级 操作符的优先级如下:优先级由上至下,逐级递减。 -
+
在表格中某个字符的优先级越高,那么以这个字符打头的方法就拥有更高的优先级。如`+`的优先级大于`<`,也就意味则`+`的优先级大于以`<`开头的`<<`,所以`2<<2+2` , 实际上等价于`2<<(2+2)` : @@ -212,4 +212,4 @@ res6: Boolean = true ## 参考资料 -1. Martin Odersky(著),高宇翔(译) . Scala编程(第3版)[M] . 电子工业出版社 . 2018-1-1 \ No newline at end of file +1. Martin Odersky(著),高宇翔(译) . Scala编程(第3版)[M] . 电子工业出版社 . 2018-1-1