GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-docs-ja/library/array.po at 3.14 · python/python-docs-ja Expand file tree/ Copy patharray.poMore file actions 619 lines (517 loc) · 23.6 KB / Copy patharray.poFile metadata and controls619 lines (517 loc) · 23.6 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 # SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # # Translators: # python-doc bot, 2026 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.15\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-10-03 17:41+0000\n" "PO-Revision-Date: 2025-09-16 00:00+0000\n" "Last-Translator: python-doc bot, 2026\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../library/array.rst:2 msgid ":mod:`!array` --- Efficient arrays of numeric values" msgstr ":mod:`!array` --- 効率的な数値配列" #: ../../library/array.rst:11 msgid "" "This module defines an object type which can compactly represent an array of " "basic values: characters, integers, floating-point numbers, complex " "numbers. Arrays are mutable :term:`sequence` types and behave very much " "like lists, except that the type of objects stored in them is constrained. " "The type is specified at object creation time by using a :dfn:`type code`, " "which is a single character. The following type codes are defined:" msgstr "" #: ../../library/array.rst:19 msgid "Type code" msgstr "型コード" #: ../../library/array.rst:19 msgid "C Type" msgstr "C の型" #: ../../library/array.rst:19 msgid "Python Type" msgstr "Python の型" #: ../../library/array.rst:19 msgid "Minimum size in bytes" msgstr "最小サイズ (バイト単位)" #: ../../library/array.rst:19 msgid "Notes" msgstr "注釈" #: ../../library/array.rst:21 msgid "``'b'``" msgstr "``'b'``" #: ../../library/array.rst:21 msgid "signed char" msgstr "signed char" #: ../../library/array.rst:21 ../../library/array.rst:23 #: ../../library/array.rst:29 ../../library/array.rst:31 #: ../../library/array.rst:33 ../../library/array.rst:35 #: ../../library/array.rst:37 ../../library/array.rst:39 #: ../../library/array.rst:41 ../../library/array.rst:43 msgid "int" msgstr "int" #: ../../library/array.rst:21 ../../library/array.rst:23 msgid "1" msgstr "1" #: ../../library/array.rst:23 msgid "``'B'``" msgstr "``'B'``" #: ../../library/array.rst:23 msgid "unsigned char" msgstr "unsigned char" #: ../../library/array.rst:25 msgid "``'u'``" msgstr "``'u'``" #: ../../library/array.rst:25 msgid "wchar_t" msgstr "wchar_t" msgid "Unicode character" msgstr "Unicode 文字" #: ../../library/array.rst:25 ../../library/array.rst:29 #: ../../library/array.rst:31 ../../library/array.rst:33 #: ../../library/array.rst:35 ../../library/array.rst:45 msgid "2" msgstr "2" #: ../../library/array.rst:25 msgid "\\(1)" msgstr "\\(1)" #: ../../library/array.rst:27 msgid "``'w'``" msgstr "``'w'``" msgid "Py_UCS4" msgstr "Py_UCS4" #: ../../library/array.rst:27 ../../library/array.rst:37 #: ../../library/array.rst:39 ../../library/array.rst:47 msgid "4" msgstr "4" #: ../../library/array.rst:27 msgid "\\(2)" msgstr "\\(2)" #: ../../library/array.rst:29 msgid "``'h'``" msgstr "``'h'``" #: ../../library/array.rst:29 msgid "signed short" msgstr "signed short" #: ../../library/array.rst:31 msgid "``'H'``" msgstr "``'H'``" #: ../../library/array.rst:31 msgid "unsigned short" msgstr "unsigned short" #: ../../library/array.rst:33 msgid "``'i'``" msgstr "``'i'``" #: ../../library/array.rst:33 msgid "signed int" msgstr "signed int" #: ../../library/array.rst:35 msgid "``'I'``" msgstr "``'I'``" #: ../../library/array.rst:35 msgid "unsigned int" msgstr "unsigned int" #: ../../library/array.rst:37 msgid "``'l'``" msgstr "``'l'``" #: ../../library/array.rst:37 msgid "signed long" msgstr "signed long" #: ../../library/array.rst:39 msgid "``'L'``" msgstr "``'L'``" #: ../../library/array.rst:39 msgid "unsigned long" msgstr "unsigned long" #: ../../library/array.rst:41 msgid "``'q'``" msgstr "``'q'``" #: ../../library/array.rst:41 msgid "signed long long" msgstr "signed long long" #: ../../library/array.rst:41 ../../library/array.rst:43 #: ../../library/array.rst:49 ../../library/array.rst:51 msgid "8" msgstr "8" #: ../../library/array.rst:43 msgid "``'Q'``" msgstr "``'Q'``" #: ../../library/array.rst:43 msgid "unsigned long long" msgstr "unsigned long long" #: ../../library/array.rst:45 msgid "``'e'``" msgstr "``'e'``" msgid "_Float16" msgstr "_Float16" #: ../../library/array.rst:45 ../../library/array.rst:47 #: ../../library/array.rst:49 msgid "float" msgstr "浮動小数点数" #: ../../library/array.rst:45 msgid "\\(3)" msgstr "\\(3)" #: ../../library/array.rst:47 msgid "``'f'``" msgstr "``'f'``" #: ../../library/array.rst:49 msgid "``'d'``" msgstr "``'d'``" #: ../../library/array.rst:49 msgid "double" msgstr "double" msgid "``'Zf'``" msgstr "``'Zf'``" msgid "float complex" msgstr "float complex" #: ../../library/array.rst:51 ../../library/array.rst:53 msgid "complex" msgstr "複素数" #: ../../library/array.rst:51 ../../library/array.rst:53 msgid "\\(4)" msgstr "\\(4)" msgid "``'Zd'``" msgstr "``'Zd'``" msgid "double complex" msgstr "double complex" #: ../../library/array.rst:53 msgid "16" msgstr "16" #: ../../library/array.rst:57 msgid "Notes:" msgstr "注釈:" msgid "It can be 16 bits or 32 bits depending on the platform." msgstr "" "プラットフォームによって、16 ビットの場合と 32 ビットの場合があります。" msgid "" "``array('u')`` now uses :c:type:`wchar_t` as C type instead of deprecated " "``Py_UNICODE``. This change doesn't affect its behavior because " "``Py_UNICODE`` is alias of :c:type:`wchar_t` since Python 3.3." msgstr "" "``array('u')`` の C の型は、非推奨の ``Py_UNICODE`` から :c:type:`wchar_t` に" "変更されました。\n" "Python 3.3 以降、``Py_UNICODE`` は :c:type:`wchar_t` の別名なので、この変更に" "よる動作の違いはありません。" msgid "Please migrate to ``'w'`` typecode." msgstr "型コード ``'w'`` に移行してください。" msgid "" "The IEEE 754 binary16 \"half precision\" type was introduced in the 2008 " "revision of the `IEEE 754 standard <ieee 754 standard_>`_. This type is not " "widely supported by C compilers. It's available as :c:expr:`_Float16` type, " "if the compiler supports the Annex H of the C23 standard." msgstr "" "IEEE 754 binary16「半精度」型は、`IEEE 754 規格 <ieee 754 standard_>`_ の " "2008 年の改訂で導入されました。\n" "この型は C コンパイラでは広くサポートされていません。\n" "コンパイラが C23 規格の附属書 H をサポートしていれば、:c:expr:`_Float16` 型と" "して使えます。" msgid "" "Complex types (``Zf`` and ``Zd``) are available unconditionally, regardless " "on support for complex types (the Annex G of the C11 standard) by the C " "compiler. As specified in the C11 standard, each complex type is represented " "by a two-element C array containing, respectively, the real and imaginary " "parts." msgstr "" "複素数型 (``Zf`` と ``Zd``) は、C コンパイラによる複素数型 (C11 規格の附属書 " "G) のサポートの有無にかかわらず、常に利用できます。\n" "C11 規格の規定に従い、各複素数型は実部と虚部を順に格納する 2 要素の C の配列" "で表されます。" msgid "" "The :ref:`ctypes <ctypes-fundamental-data-types>` and :ref:`struct <format-" "characters>` modules, as well as third-party modules like `numpy <https://" "numpy.org/doc/stable/reference/" "arrays.interface.html#object.__array_interface__>`__, use similar -- but " "slightly different -- type codes." msgstr "" ":ref:`ctypes <ctypes-fundamental-data-types>` モジュール、:ref:`struct " "<format-characters>` モジュール、`numpy <https://numpy.org/doc/stable/" "reference/arrays.interface.html#object.__array_interface__>`__ などのサード" "パーティー製モジュールも、似ているものの少し異なる型コードを使っています。" #: ../../library/array.rst:99 msgid "" "The actual representation of values is determined by the machine " "architecture (strictly speaking, by the C implementation). The actual size " "can be accessed through the :attr:`array.itemsize` attribute." msgstr "" "値の実際の表現はマシンアーキテクチャ (厳密に言うとCの実装) によって決まりま" "す。値の実際のサイズは :attr:`array.itemsize` 属性から得られます。" #: ../../library/array.rst:103 msgid "The module defines the following item:" msgstr "このモジュールは以下の項目を定義しています:" msgid "A tuple with all available type codes." msgstr "利用可能なすべての型コードを含むタプルです。" msgid "The type changed from :class:`str` to :class:`tuple`." msgstr "型が :class:`str` から :class:`tuple` に変わりました。" #: ../../library/array.rst:114 msgid "The module defines the following type:" msgstr "このモジュールでは次の型を定義しています:" msgid "" "A new array whose items are restricted by *typecode*, and initialized from " "the optional *initializer* value, which must be a :class:`bytes` " "or :class:`bytearray` object, a Unicode string, or iterable over elements of " "the appropriate type." msgstr "" "要素の型を *typecode* で制限した新しい配列を作成します。\n" "省略可能な *initializer* を指定すると、その値で初期化します。\n" "この値は :class:`bytes` オブジェクト、:class:`bytearray` オブジェクト、" "Unicode 文字列、または適切な型の要素を返すイテラブルでなければなりません。" msgid "" "If given a :class:`bytes` or :class:`bytearray` object, the initializer is " "passed to the new array's :meth:`frombytes` method; if given a Unicode " "string, the initializer is passed to the :meth:`fromunicode` method; " "otherwise, the initializer's iterator is passed to the :meth:`extend` method " "to add initial items to the array." msgstr "" ":class:`bytes` または :class:`bytearray` オブジェクトを指定した場合、" "``initializer`` は新しい配列の :meth:`frombytes` メソッドに渡されます。\n" "Unicode 文字列を指定した場合は :meth:`fromunicode` メソッドに渡されます。\n" "それ以外の場合は、``initializer`` のイテレーターを :meth:`extend` メソッドに" "渡して、初期値となる要素を配列に追加します。" msgid "" "Array objects support the ordinary :ref:`mutable <typesseq-" "mutable>` :term:`sequence` operations of indexing, slicing, concatenation, " "and multiplication. When using slice assignment, the assigned value must be " "an array object with the same type code; in all other " "cases, :exc:`TypeError` is raised. Array objects also implement the buffer " "interface, and may be used wherever :term:`bytes-like objects <bytes-like " "object>` are supported." msgstr "" "配列オブジェクトは、インデックス参照、スライス、連結、繰り返しといった、通常" "の :ref:`ミュータブルな <typesseq-mutable>` :term:`シーケンス <sequence>` の" "操作をサポートします。\n" "スライス代入では、代入する値は同じ型コードの配列オブジェクトでなければなら" "ず、それ以外の場合は :exc:`TypeError` を送出します。\n" "配列オブジェクトはバッファインターフェースも実装しており、:term:`bytes-like " "オブジェクト <bytes-like object>` を受け付ける場所で使えます。" msgid "Arrays are :ref:`generic <generics>` over the type of their contents." msgstr "" "配列は、要素の型をパラメーターとする :ref:`ジェネリック型 <generics>` です。" #: ../../library/array.rst:139 msgid "" "Raises an :ref:`auditing event <auditing>` ``array.__new__`` with arguments " "``typecode``, ``initializer``." msgstr "" "引数 ``typecode``, ``initializer`` 付きで :ref:`監査イベント <auditing>` " "``array.__new__`` を送出します。" #: ../../library/array.rst:144 msgid "The typecode character used to create the array." msgstr "アレイを作るときに使う型コード文字です。" #: ../../library/array.rst:149 msgid "The length in bytes of one array item in the internal representation." msgstr "アレイの要素 1 つの内部表現に使われるバイト長です。" msgid "Append a new item with the specified value to the end of the array." msgstr "指定した値を持つ新しい要素を配列の末尾に追加します。" #: ../../library/array.rst:159 msgid "" "Return a tuple ``(address, length)`` giving the current memory address and " "the length in elements of the buffer used to hold array's contents. The " "size of the memory buffer in bytes can be computed as ``array.buffer_info()" "[1] * array.itemsize``. This is occasionally useful when working with low-" "level (and inherently unsafe) I/O interfaces that require memory addresses, " "such as certain :c:func:`!ioctl` operations. The returned numbers are valid " "as long as the array exists and no length-changing operations are applied to " "it." msgstr "" "アレイの内容を記憶するために使っているバッファの、現在のメモリアドレスと要素" "数の入ったタプル ``(address, length)`` を返します。バイト単位で表したメモリ" "バッファの大きさは ``array.buffer_info()[1] * array.itemsize`` で計算できま" "す。例えば :c:func:`!ioctl` 操作のような、メモリアドレスを必要とする低レベル" "な (そして、本質的に危険な) I/Oインターフェースを使って作業する場合に、ときど" "き便利です。アレイ自体が存在し、長さを変えるような演算を適用しない限り、有効" "な値を返します。" #: ../../library/array.rst:169 msgid "" "When using array objects from code written in C or C++ (the only way to " "effectively make use of this information), it makes more sense to use the " "buffer interface supported by array objects. This method is maintained for " "backward compatibility and should be avoided in new code. The buffer " "interface is documented in :ref:`bufferobjects`." msgstr "" "C やC++ で書いたコードからアレイオブジェクトを使う場合 (``buffer_info()`` の" "情報を使う意味のある唯一の方法です) は、アレイオブジェクトでサポートしている" "バッファインターフェースを使う方がより理にかなっています。このメソッドは後方" "互換性のために保守されており、新しいコードでの使用は避けるべきです。バッファ" "インターフェースの説明は :ref:`bufferobjects` にあります。" msgid "" "\"Byteswap\" all items of the array. This is only supported for values " "which are 1, 2, 4, 8 or 16 bytes in size; for other types of " "values, :exc:`RuntimeError` is raised. It is useful when reading data from " "a file written on a machine with a different byte order. Note, that for " "complex types the order of components (the real part, followed by imaginary " "part) is preserved." msgstr "" "配列の全要素のバイト順を逆にします。\n" "サイズが 1、2、4、8、16 バイトの値だけをサポートし、それ以外の型の値で" "は :exc:`RuntimeError` を送出します。\n" "バイト順が異なるマシンで書き込まれたファイルからデータを読み込む際に便利で" "す。\n" "複素数型の場合、成分の順序 (実部、虚部の順) は変わりません。" msgid "Return the number of occurrences of *value* in the array." msgstr "配列内で *value* が出現する回数を返します。" #: ../../library/array.rst:192 msgid "" "Append items from *iterable* to the end of the array. If *iterable* is " "another array, it must have *exactly* the same type code; if " "not, :exc:`TypeError` will be raised. If *iterable* is not an array, it " "must be iterable and its elements must be the right type to be appended to " "the array." msgstr "" "*iterable* から要素を取り出し、アレイの末尾に要素を追加します。 *iterable* が" "別のアレイ型である場合、二つのアレイは *全く* 同じ型コードでなければなりませ" "ん。それ以外の場合には :exc:`TypeError` を送出します。 *iterable* がアレイで" "ない場合、アレイに値を追加できるような正しい型の要素からなるイテレーション可" "能オブジェクトでなければなりません。" msgid "" "Appends items from the :term:`bytes-like object`, interpreting its content " "as an array of machine values (as if it had been read from a file using " "the :meth:`fromfile` method)." msgstr "" ":term:`bytes-like object` の内容をマシンのデータ形式の配列として解釈し、要素" "を追加します (:meth:`fromfile` メソッドでファイルから読み込んだ場合と同じで" "す)。" #: ../../library/array.rst:204 msgid ":meth:`!fromstring` is renamed to :meth:`frombytes` for clarity." msgstr "" "明確化のため :meth:`!fromstring` の名前が :meth:`frombytes` に変更されまし" "た。" #: ../../library/array.rst:210 msgid "" "Read *n* items (as machine values) from the :term:`file object` *f* and " "append them to the end of the array. If less than *n* items are " "available, :exc:`EOFError` is raised, but the items that were available are " "still inserted into the array." msgstr "" ":term:`ファイルオブジェクト <file object>` *f* から (マシンのデータ形式そのま" "まで) *n* 個の要素を読み出し、アレイの末尾に要素を追加します。 *n* 個未満の要" "素しか読めなかった場合は :exc:`EOFError` を送出しますが、それまでに読み出せた" "値はアレイに追加されます。" #: ../../library/array.rst:218 msgid "" "Append items from the list. This is equivalent to ``for x in list: " "a.append(x)`` except that if there is a type error, the array is unchanged." msgstr "" "リストから要素を追加します。型に関するエラーが発生した場合にアレイが変更され" "ないことを除き、 ``for x in list: a.append(x)`` と同じです。" msgid "" "Extends this array with data from the given Unicode string. The array must " "have type code ``'u'`` or ``'w'``; otherwise a :exc:`ValueError` is raised. " "Use ``array.frombytes(unicodestring.encode(enc))`` to append Unicode data to " "an array of some other type." msgstr "" "指定した Unicode 文字列のデータを配列に追加します。\n" "配列の型コードは ``'u'`` または ``'w'`` でなければならず、それ以外で" "は :exc:`ValueError` を送出します。\n" "他の型の配列に Unicode データを追加するには、" "``array.frombytes(unicodestring.encode(enc))`` を使ってください。" msgid "" "Return the smallest *i* such that *i* is the index of the first occurrence " "of *value* in the array. The optional arguments *start* and *stop* can be " "specified to search for *value* within a subsection of the array. " "Raise :exc:`ValueError` if *value* is not found." msgstr "" "配列内で *value* が最初に出現するインデックス *i* (つまり、該当する最小の " "*i*) を返します。\n" "省略可能な引数 *start* と *stop* を指定すると、配列の一部分から *value* を探" "せます。\n" "*value* が見つからなければ :exc:`ValueError` を送出します。" msgid "Added optional *start* and *stop* parameters." msgstr "省略可能な *start* と *stop* パラメーターが追加されました。" msgid "" "Insert a new item *value* in the array before position *index*. Negative " "values are treated as being relative to the end of the array." msgstr "" "配列の *index* が示す位置の直前に、新しい要素 *value* を挿入します。\n" "負のインデックスは配列の末尾からの相対位置として扱われます。" #: ../../library/array.rst:249 msgid "" "Removes the item with the index *i* from the array and returns it. The " "optional argument defaults to ``-1``, so that by default the last item is " "removed and returned." msgstr "" "アレイからインデクスが *i* の要素を取り除いて返します。オプションの引数はデ" "フォルトで ``-1`` になっていて、最後の要素を取り除いて返すようになっていま" "す。" msgid "Remove the first occurrence of *value* from the array." msgstr "配列内で最初に出現する *value* を削除します。" msgid "Remove all elements from the array." msgstr "配列のすべての要素を削除します。" #: ../../library/array.rst:268 msgid "Reverse the order of the items in the array." msgstr "アレイの要素の順番を逆にします。" #: ../../library/array.rst:273 msgid "" "Convert the array to an array of machine values and return the bytes " "representation (the same sequence of bytes that would be written to a file " "by the :meth:`tofile` method.)" msgstr "" "array をマシンの値の array に変換して、 bytes の形で返します (:meth:`tofile` " "メソッドを使ってファイルに書かれるバイト列と同じです)。" msgid ":meth:`!tostring` is renamed to :meth:`tobytes` for clarity." msgstr "" "名前を明確にするため、:meth:`!tostring` を :meth:`tobytes` に改名しました。" #: ../../library/array.rst:283 msgid "Write all items (as machine values) to the :term:`file object` *f*." msgstr "" "すべての要素を (マシンの値の形式で) :term:`file object` *f* に書き込みます。" #: ../../library/array.rst:288 msgid "Convert the array to an ordinary list with the same items." msgstr "アレイを同じ要素を持つ普通のリストに変換します。" msgid "" "Convert the array to a Unicode string. The array must have a type ``'u'`` " "or ``'w'``; otherwise a :exc:`ValueError` is raised. Use " "``array.tobytes().decode(enc)`` to obtain a Unicode string from an array of " "some other type." msgstr "" "配列を Unicode 文字列に変換します。\n" "配列の型コードは ``'u'`` または ``'w'`` でなければならず、それ以外で" "は :exc:`ValueError` を送出します。\n" "他の型の配列から Unicode 文字列を得るには、``array.tobytes().decode(enc)`` を" "使ってください。" #: ../../library/array.rst:298 msgid "" "The string representation of array objects has the form ``array(typecode, " "initializer)``. The *initializer* is omitted if the array is empty, " "otherwise it is a Unicode string if the *typecode* is ``'u'`` or ``'w'``, " "otherwise it is a list of numbers. The string representation is guaranteed " "to be able to be converted back to an array with the same type and value " "using :func:`eval`, so long as the :class:`~array.array` class has been " "imported using ``from array import array``. Variables ``inf`` and ``nan`` " "must also be defined if it contains corresponding floating-point values. " "Examples::" msgstr "" msgid "" "array('l')\n" "array('w', 'hello \\u2641')\n" "array('l', [1, 2, 3, 4, 5])\n" "array('d', [1.0, 2.0, 3.14, -inf, nan])" msgstr "" "array('l')\n" "array('w', 'hello \\u2641')\n" "array('l', [1, 2, 3, 4, 5])\n" "array('d', [1.0, 2.0, 3.14, -inf, nan])" #: ../../library/array.rst:318 msgid "Module :mod:`struct`" msgstr ":mod:`struct` モジュール" #: ../../library/array.rst:319 msgid "Packing and unpacking of heterogeneous binary data." msgstr "異なる種類のバイナリデータのパックおよびアンパック。" #: ../../library/array.rst:321 msgid "`NumPy <https://numpy.org/>`_" msgstr "`NumPy <https://numpy.org/>`_" #: ../../library/array.rst:322 msgid "The NumPy package defines another array type." msgstr "NumPy パッケージは、別の配列型を定義しています。" #: ../../library/array.rst:7 msgid "arrays" msgstr "arrays" |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |