chore(i18n,curriculum): update translations (#43157)

This commit is contained in:
camperbot
2021-08-10 19:57:14 +09:00
committed by GitHub
parent 3133723f4a
commit 4c7ba02af1
19 changed files with 148 additions and 126 deletions

View File

@ -38,6 +38,12 @@ assert(
);
```
`zeroArray(4,3)` 应该返回一个包含 4 行、每行 3 列零的数组。
```js
assert(JSON.stringify(zeroArray(4,3)) == '[[0,0,0],[0,0,0],[0,0,0],[0,0,0]]');
```
# --seed--
## --seed-contents--
@ -62,6 +68,7 @@ function zeroArray(m, n) {
let matrix = zeroArray(3, 2);
console.log(matrix);
```
# --solutions--
@ -86,4 +93,5 @@ function zeroArray(m, n) {
let matrix = zeroArray(3, 2);
console.log(matrix);
```

View File

@ -10,7 +10,7 @@ dashedName: match-all-letters-and-numbers
使用元字符,可以使用 `[a-z]` 搜寻字母表中的所有字母。 这种元字符是很常见的,它有一个缩写,但这个缩写也包含额外的字符。
JavaScript 中与字母表匹配的最接近的元字符是`\w`。 这个缩写等同于`[A-Za-z0-9_]`。 此字符类匹配上面字母和小写字母以及数字。 注意,这个字符类也包含下划线字符 (`_`)。
JavaScript 中与字母表匹配的最接近的元字符是`\w`。 这个缩写等同于`[A-Za-z0-9_]`。 此字符类匹配大写字母和小写字母以及数字。 注意,这个字符类也包含下划线字符 (`_`)。
```js
let longHand = /[A-Za-z0-9_]+/;