Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1cc00e4

Browse files
🎨 go-04
1 parent 318547f commit 1cc00e4

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
<a href="https://github.com/java-aodeng/golang-examples/blob/master/go-03/1.md">第03章 数据类型</a>
88

9+
<a href="https://github.com/java-aodeng/golang-examples/blob/master/go-04/1.md">第04章 运算符</a>
10+
911
## golang星球学习基地
1012
![](https://i.loli.net/2019/06/13/5d01b9fbec81470229.png)
1113

12-
第04章 运算符
13-
1414
第05章 条件和循环
1515

1616
第06章 数组和切片

‎go-04/1.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<a href="https://github.com/java-aodeng/golang-examples">第04章 运算符</a>
2+
3+
## .序:
4+
开源协议:GPL-3.0
5+
6+
地址:[<a href="https://github.com/java-aodeng/golang-examples">golang-examples</a>] https://github.com/java-aodeng/golang-examples
7+
8+
作者:[<a href="https://github.com/java-aodeng">低调小熊猫</a>] https://github.com/java-aodeng
9+
10+
意义:分享知识,提升自己
11+
12+
## 1.1 算术运算符
13+
- +
14+
- -
15+
- *
16+
- /
17+
- %
18+
- ++
19+
- --
20+
- Go语言没有前置的++,-- 错误示例:(++a)
21+
22+
## 1.2 类型转化
23+
- Go 语言不允许隐式类型转换
24+
- 别名和原有类型也不能进行隐式类型转换
25+
26+
## 1.3 类型的预定于值
27+
- math.MaxInt64
28+
- math.MaxFloat64
29+
- math.MaxUint32
30+
31+
## 1.4 指针类型
32+
与其他主要编程语言的差异
33+
- 不支持指针运算
34+
- string是值类型,其默认的初始化值为空字符串,而不是nil

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /