Skip to content

Commit 8c413a8

Browse files
committed
(翻译英文)输入和输出
1 parent 78a44ee commit 8c413a8

File tree

4 files changed

+60
-63
lines changed

4 files changed

+60
-63
lines changed

docs/.vuepress/configs/head.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,9 @@ module.exports = [
8282
content: '#000000'
8383
}],
8484
// 百度统计
85-
['script', {}, `
86-
(function() {
87-
var onDocumentComplete = function() { 
88-
if (document.readyState =='complete') {
89-
var hm = document.createElement("script");
90-
hm.src = "https://hm.baidu.com/hm.js?a809b6f7e6517af8c15c6076273e80fe";
91-
var s = document.getElementsByTagName("script")[0];
92-
s.parentNode.insertBefore(hm, s);
93-
}
94-
}
95-
document.onreadystatechange = onDocumentComplete; //当页面加载状态改变的时候执行这个方法. 
96-
})();
97-
`],
98-
];
85+
['script', {
86+
src: 'https://hm.baidu.com/hm.js?a809b6f7e6517af8c15c6076273e80fe',
87+
defer: 'defer',
88+
async: 'true'
89+
}]
90+
];

docs/.vuepress/configs/plugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ module.exports = [
2323
type: 'upgrade',
2424
before: info => `<UpgradePath title="${info}">`,
2525
after: '</UpgradePath>',
26-
}],
27-
];
26+
}]
27+
];

docs/reference/routines/io.md

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
# Input and output
1+
# 输入和输出
22

3-
## NumPy binary files (NPY, NPZ)
3+
## NumPy二进制文件(NPYNPZ
44

5-
method | description
5+
方法 | 描述
66
---|---
7-
[load](https://numpy.org/devdocs/reference/generated/numpy.load.html#numpy.load)(file[, mmap_mode, allow_pickle, …]) | Load arrays or pickled objects from .npy, .npz or pickled files.
8-
[save](https://numpy.org/devdocs/reference/generated/numpy.save.html#numpy.save)(file, arr[, allow_pickle, fix_imports]) | Save an array to a binary file in NumPy .npy format.
9-
[savez](https://numpy.org/devdocs/reference/generated/numpy.savez.html#numpy.savez)(file, \*args, \*\*kwds) | Save several arrays into a single file in uncompressed .npz format.
10-
[savez_compressed](https://numpy.org/devdocs/reference/generated/numpy.savez_compressed.html#numpy.savez_compressed)(file, \*args, \*\*kwds) | Save several arrays into a single file in compressed .npz format.
7+
[load](https://numpy.org/devdocs/reference/generated/numpy.load.html#numpy.load)(file[, mmap_mode, allow_pickle, …]) | .npy、.npz或pickle文件加载阵列或pickle对象。
8+
[save](https://numpy.org/devdocs/reference/generated/numpy.save.html#numpy.save)(file, arr[, allow_pickle, fix_imports]) | 将数组保存为NumPy.npy格式的二进制文件。
9+
[savez](https://numpy.org/devdocs/reference/generated/numpy.savez.html#numpy.savez)(file, \*args, \*\*kwds) | 将几个数组以未压缩的.npz格式保存到单个文件中。
10+
[savez_compressed](https://numpy.org/devdocs/reference/generated/numpy.savez_compressed.html#numpy.savez_compressed)(file, \*args, \*\*kwds) | 以压缩的.npz格式将几个数组保存到单个文件中。
1111

12-
The format of these binary file types is documented in
12+
有关这些二进制文件类型的格式,请参阅
1313
[``numpy.lib.format``](https://numpy.org/devdocs/reference/generated/numpy.lib.format.html#module-numpy.lib.format)
1414

15-
## Text files
15+
## 文本文件
1616

17-
method | description
17+
方法 | 描述
1818
---|---
19-
[loadtxt](https://numpy.org/devdocs/reference/generated/numpy.loadtxt.html#numpy.loadtxt)(fname[, dtype, comments, delimiter, …]) | Load data from a text file.
20-
[savetxt](https://numpy.org/devdocs/reference/generated/numpy.savetxt.html#numpy.savetxt)(fname, X[, fmt, delimiter, newline, …]) | Save an array to a text file.
21-
[genfromtxt](https://numpy.org/devdocs/reference/generated/numpy.genfromtxt.html#numpy.genfromtxt)(fname[, dtype, comments, …]) | Load data from a text file, with missing values handled as specified.
22-
[fromregex](https://numpy.org/devdocs/reference/generated/numpy.fromregex.html#numpy.fromregex)(file, regexp, dtype[, encoding]) | Construct an array from a text file, using regular expression parsing.
23-
[fromstring](https://numpy.org/devdocs/reference/generated/numpy.fromstring.html#numpy.fromstring)(string[, dtype, count, sep]) | A new 1-D array initialized from text data in a string.
24-
[ndarray.tofile](https://numpy.org/devdocs/reference/generated/numpy.ndarray.tofile.html#numpy.ndarray.tofile)(fid[, sep, format]) | Write array to a file as text or binary (default).
25-
[ndarray.tolist](https://numpy.org/devdocs/reference/generated/numpy.ndarray.tolist.html#numpy.ndarray.tolist)() | Return the array as an a.ndim-levels deep nested list of Python scalars.
19+
[loadtxt](https://numpy.org/devdocs/reference/generated/numpy.loadtxt.html#numpy.loadtxt)(fname[, dtype, comments, delimiter, …]) | 从文本文件加载数据。
20+
[savetxt](https://numpy.org/devdocs/reference/generated/numpy.savetxt.html#numpy.savetxt)(fname, X[, fmt, delimiter, newline, …]) | 将数组保存到文本文件。
21+
[genfromtxt](https://numpy.org/devdocs/reference/generated/numpy.genfromtxt.html#numpy.genfromtxt)(fname[, dtype, comments, …]) | 从文本文件加载数据,并按指定方式处理缺少的值。
22+
[fromregex](https://numpy.org/devdocs/reference/generated/numpy.fromregex.html#numpy.fromregex)(file, regexp, dtype[, encoding]) | 使用正则表达式解析从文本文件构造数组。
23+
[fromstring](https://numpy.org/devdocs/reference/generated/numpy.fromstring.html#numpy.fromstring)(string[, dtype, count, sep]) | 从字符串中的文本数据初始化的新一维数组。
24+
[ndarray.tofile](https://numpy.org/devdocs/reference/generated/numpy.ndarray.tofile.html#numpy.ndarray.tofile)(fid[, sep, format]) | 将数组以文本或二进制形式写入文件(默认)。
25+
[ndarray.tolist](https://numpy.org/devdocs/reference/generated/numpy.ndarray.tolist.html#numpy.ndarray.tolist)() | 以Python标量的a.ndim级深嵌套列表的形式返回数组。
2626

27-
## Raw binary files
27+
## 原始二进制文件
2828

29-
method | description
29+
方法 | 描述
3030
---|---
31-
[fromfile](https://numpy.org/devdocs/reference/generated/numpy.fromfile.html#numpy.fromfile)(file[, dtype, count, sep, offset]) | Construct an array from data in a text or binary file.
32-
[ndarray.tofile](https://numpy.org/devdocs/reference/generated/numpy.ndarray.tofile.html#numpy.ndarray.tofile)(fid[, sep, format]) | Write array to a file as text or binary (default).
31+
[fromfile](https://numpy.org/devdocs/reference/generated/numpy.fromfile.html#numpy.fromfile)(file[, dtype, count, sep, offset]) | 从文本或二进制文件中的数据构造数组。
32+
[ndarray.tofile](https://numpy.org/devdocs/reference/generated/numpy.ndarray.tofile.html#numpy.ndarray.tofile)(fid[, sep, format]) | 将数组以文本或二进制形式写入文件(默认)。
3333

34-
## String formatting
34+
## 字符串格式
3535

36-
method | description
36+
方法 | 描述
3737
---|---
38-
[array2string](https://numpy.org/devdocs/reference/generated/numpy.array2string.html#numpy.array2string)(a[, max_line_width, precision, …]) | Return a string representation of an array.
39-
[array_repr](https://numpy.org/devdocs/reference/generated/numpy.array_repr.html#numpy.array_repr)(arr[, max_line_width, precision, …]) | Return the string representation of an array.
40-
[array_str](https://numpy.org/devdocs/reference/generated/numpy.array_str.html#numpy.array_str)(a[, max_line_width, precision, …]) | Return a string representation of the data in an array.
41-
[format_float_positional](https://numpy.org/devdocs/reference/generated/numpy.format_float_positional.html#numpy.format_float_positional)(x[, precision, …]) | Format a floating-point scalar as a decimal string in positional notation.
42-
[format_float_scientific](https://numpy.org/devdocs/reference/generated/numpy.format_float_scientific.html#numpy.format_float_scientific)(x[, precision, …]) | Format a floating-point scalar as a decimal string in scientific notation.
38+
[array2string](https://numpy.org/devdocs/reference/generated/numpy.array2string.html#numpy.array2string)(a[, max_line_width, precision, …]) | 返回数组的字符串表示形式。
39+
[array_repr](https://numpy.org/devdocs/reference/generated/numpy.array_repr.html#numpy.array_repr)(arr[, max_line_width, precision, …]) | 返回数组的字符串表示形式。
40+
[array_str](https://numpy.org/devdocs/reference/generated/numpy.array_str.html#numpy.array_str)(a[, max_line_width, precision, …]) | 返回数组中数据的字符串表示形式。
41+
[format_float_positional](https://numpy.org/devdocs/reference/generated/numpy.format_float_positional.html#numpy.format_float_positional)(x[, precision, …]) | 将浮点标量格式化为位置表示法中的十进制字符串。
42+
[format_float_scientific](https://numpy.org/devdocs/reference/generated/numpy.format_float_scientific.html#numpy.format_float_scientific)(x[, precision, …]) | 将浮点标量格式化为科学记数法中的十进制字符串。
4343

44-
## Memory mapping files
44+
## 内存映射文件
4545

46-
method | description
46+
方法 | 描述
4747
---|---
48-
[memmap](https://numpy.org/devdocs/reference/generated/numpy.memmap.html#numpy.memmap) | Create a memory-map to an array stored in a binary file on disk.
48+
[memmap](https://numpy.org/devdocs/reference/generated/numpy.memmap.html#numpy.memmap) | 创建存储在磁盘上二进制文件中的阵列的内存映射。
4949

50-
## Text formatting options
50+
## 文本格式选项
5151

52-
method | description
52+
方法 | 描述
5353
---|---
54-
[set_printoptions](https://numpy.org/devdocs/reference/generated/numpy.set_printoptions.html#numpy.set_printoptions)([precision, threshold, …]) | Set printing options.
55-
[get_printoptions](https://numpy.org/devdocs/reference/generated/numpy.get_printoptions.html#numpy.get_printoptions)() | Return the current print options.
56-
[set_string_function](https://numpy.org/devdocs/reference/generated/numpy.set_string_function.html#numpy.set_string_function)(f[, repr]) | Set a Python function to be used when pretty printing arrays.
57-
[printoptions](https://numpy.org/devdocs/reference/generated/numpy.printoptions.html#numpy.printoptions)(\\\*args, \\\*\\\*kwargs) | Context manager for setting print options.
54+
[set_printoptions](https://numpy.org/devdocs/reference/generated/numpy.set_printoptions.html#numpy.set_printoptions)([precision, threshold, …]) | 设置打印选项。
55+
[get_printoptions](https://numpy.org/devdocs/reference/generated/numpy.get_printoptions.html#numpy.get_printoptions)() | 返回当前打印选项。
56+
[set_string_function](https://numpy.org/devdocs/reference/generated/numpy.set_string_function.html#numpy.set_string_function)(f[, repr]) | 设置在更好的打印数组时要使用的Python函数。
57+
[printoptions](https://numpy.org/devdocs/reference/generated/numpy.printoptions.html#numpy.printoptions)(\*args, \*\*kwargs) | 上下文管理器,用于设置打印选项。
5858

59-
## Base-n representations
59+
## 基数n表示
6060

61-
method | description
61+
方法 | 描述
6262
---|---
63-
[binary_repr](https://numpy.org/devdocs/reference/generated/numpy.binary_repr.html#numpy.binary_repr)(num[, width]) | Return the binary representation of the input number as a string.
64-
[base_repr](https://numpy.org/devdocs/reference/generated/numpy.base_repr.html#numpy.base_repr)(number[, base, padding]) | Return a string representation of a number in the given base system.
63+
[binary_repr](https://numpy.org/devdocs/reference/generated/numpy.binary_repr.html#numpy.binary_repr)(num[, width]) | 以字符串形式返回输入数字的二进制表示形式。
64+
[base_repr](https://numpy.org/devdocs/reference/generated/numpy.base_repr.html#numpy.base_repr)(number[, base, padding]) | 返回给定基本系统中数字的字符串表示形式。
6565

66-
## Data sources
66+
## 数据源
6767

68-
method | description
68+
方法 | 描述
6969
---|---
70-
[DataSource](https://numpy.org/devdocs/reference/generated/numpy.DataSource.html#numpy.DataSource)([destpath]) | A generic data source file (file, http, ftp, …).
70+
[DataSource](https://numpy.org/devdocs/reference/generated/numpy.DataSource.html#numpy.DataSource)([destpath]) | 通用数据源文件(filehttp、ftp等)。
7171

72-
## Binary Format Description
72+
## 二进制格式描述
7373

74-
method | description
74+
方法 | 描述
7575
---|---
76-
[lib.format](https://numpy.org/devdocs/reference/generated/numpy.lib.format.html#module-numpy.lib.format) | Binary serialization
76+
[lib.format](https://numpy.org/devdocs/reference/generated/numpy.lib.format.html#module-numpy.lib.format) | 二进制序列化

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7284,6 +7284,11 @@ vuepress-plugin-flowchart@^1.4.2:
72847284
dependencies:
72857285
flowchart.js "^1.11.3"
72867286

7287+
vuepress-plugin-named-chunks@^1.0.2:
7288+
version "1.0.2"
7289+
resolved "https://registry.yarnpkg.com/vuepress-plugin-named-chunks/-/vuepress-plugin-named-chunks-1.0.2.tgz#0f201c4ea0df0baba6978895c8f46486216865c2"
7290+
integrity sha512-U7Ufi2ZjkXdlAORzIliK+4YY29nfqwYZ4AvSPCov7oyi1Pf5YZNDjrqoeJSVqll649RUhSgGS7HthY8HQMgs1w==
7291+
72877292
vuepress-theme-teadocs@^1.2.6:
72887293
version "1.2.6"
72897294
resolved "https://registry.yarnpkg.com/vuepress-theme-teadocs/-/vuepress-theme-teadocs-1.2.6.tgz#b44966cf97d83dfe4e9732eb845b2978c9e456ed"

0 commit comments

Comments
 (0)