Skip to content

Commit

Permalink
Merge pull request #14 from meitangdehulu/patch-1
Browse files Browse the repository at this point in the history
Optimization adjustment
  • Loading branch information
friendlyhj authored Oct 16, 2021
2 parents faf2afd + 037726a commit 3b787d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions advanced/calculate.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# 基本运算

## 所有运算操作符

| 运算符 | 赋值运算符 | 用途 |
| :--- | :--- | :--- |
| `+` | `+=` ||
Expand All @@ -11,7 +10,7 @@
| `%` | `%=` | 取余 |
| `~` | `~=` | 连接字符串 |
| `&&` | `&=` ||
| `||` | `|=` ||
| `\|\|` | `\|=` ||
| `^` | `^=` | 异或 |
| `!` | ||
| | `=` | 赋值 |
Expand Down
2 changes: 2 additions & 0 deletions advanced/overview/basic-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ description: 当你把ZenScript当作一种“编程”语言时……更广阔
## 数据类型

数据类型为最最基础的,直接存储一个值的。它们没有任何方法、Getter、Setter可用。

| 类名 | 解释 | 示例 |
| :--- | :--- | :--- |
| 整型\(int\) | 任意整数\(范围为-2147483648~2147483647\) | `var test as int = 10;` |
Expand All @@ -25,6 +26,7 @@ description: 当你把ZenScript当作一种“编程”语言时……更广阔
## 普通类型

以下为常用的普通类型

| 类名 | 解释 | 示例 | 导入 |
| :--- | :--- | :--- | :--- |
| 字符串\(string\) | 文本(注1:Java可用的string类的方法,ZenScript一样可用 注2:可用`==`判断是否相同,不需用equals方法) | `var test as string = "hello!";` | |
Expand Down

0 comments on commit 3b787d4

Please sign in to comment.