Movatterモバイル変換


[0]ホーム

URL:


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

Commit8a0b6f5

Browse files
committed
docs/array: Document array module.
1 parente15fb33 commit8a0b6f5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

‎docs/library/array.rst‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
:mod:`array` -- arrays of numeric data
2+
======================================
3+
4+
..module::array
5+
:synopsis: efficient arrays of numeric data
6+
7+
See `Python array<https://docs.python.org/3/library/array.html>`_ for more
8+
information.
9+
10+
Supported format codes: ``b``, ``B``, ``h``, ``H``, ``i``, ``I``, ``l``,
11+
``L``, ``q``, ``Q``, ``f``, ``d`` (the latter 2 depending on the
12+
floating-point support).
13+
14+
Classes
15+
-------
16+
17+
..class::array.array(typecode, [iterable])
18+
19+
Create array with elements of given type. Initial contents of the
20+
array are given by an `iterable`. If it is not provided, an empty
21+
array is created.
22+
23+
..method::append(val)
24+
25+
Append new element to the end of array, growing it.
26+
27+
..method::extend(iterable)
28+
29+
Append new elements as contained in an iterable to the end of
30+
array, growing it.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp