|
Meta tags:
description=Japanese Translation of the Python Documentation. Contribute to python/python-docs-ja development by creating an account on GitHub.;
Headings (most frequently used words):
navigation, datastructures, po, file, breadcrumbs, footer, menu, repository, filesexpand, tree, latest, commit, history, metadata, and, controls,
Text of the page (most frequently used words):
the (130), msgid (93), msgstr (91), for (87), list (64), #tutorial (58), #datastructures (58), rst (55), and (40), banana (28), keyword (26), are (25), append (24), fruits (24), apple (21), range (21), stack (21), that (20), python (20), del (20), from (17), this (16), hello (16), lists (16), element (16), can (15), not (15), value (15), queue (15), file (14), set (14), tuple (14), pop (14), you (13), elements (13), sequence (13), unpacking (13), example (13), item (13), github (12), orange (12), pear (12), ref (12), 12345 (12), iterable (12), matrix (12), transposed (12), row (12), vec (12), squares (12), tuples (11), index (11), first (11), empty (10), also (10), 54321 (10), len (10), expression (10), all (10), data (9), 333 (9), more (9), have (8), func (8), create (8), use (8), used (8), support (8), with (8), which (8), last (8), another (8), deque (8), insert (8), kiwi (8), there (7), parentheses (7), some (7), see (7), they (7), line (7), remove (7), comprehension (7), sort (7), docs (6), letters (6), note (6), types (6), objects (6), singleton (6), items (6), collections (6), 1234 (6), meth (6), each (6), comprehensions (6), arguments (6), transposed_row (6), combs (6), terry (6), graham (6), none (6), return (6), grape (6), exc (6), code (6), security (5), 2026 (5), raw (5), but (5), both (5), sets (5), like (5), following (5), mutable (5), similar (5), nested (5), object (5), most (5), call (5), number (5), other (5), new (5), methods (5), actions (5), operations (4), two (4), basket (4), section (4), function (4), difference (4), type (4), assignment (4), sign (4), reverse (4), possible (4), statement (4), one (4), term (4), contain (4), may (4), such (4), typeerror (4), stdin (4), module (4), traceback (4), recent (4), typesseq (4), spam (4), build (4), must (4), will (4), tut (4), zip (4), import (4), num (4), elem (4), loganberry (4), passion (4), fruit (4), weapon (4), freshfruit (4), using (4), michael (4), john (4), popleft (4), eric (4), end (4), count (4), と同様です (4), copy (4), place (4), start (4), valueerror (4), your (4), copilot (4), time (3), navigation (3), fast (3), different (3), order (3), because (3), next (3), uses (3), packing (3), just (3), side (3), works (3), any (3), values (3), immutable (3), input (3), without (3), added (3), language (3), did (3), way (3), given (3), its (3), arbitrary (3), after (3), unpack (3), result (3), argument (3), lines (3), listcomp (3), same (3), equivalent (3), 142 (3), 例えば (3), where (3), を使います (3), pops (3), out (3), top (3), add (3), compared (3), sorted (3), position (3), raises (3), content (3), com (3), 2025 (3), blame (3), history (3), quality (3), tab (3), window (3), refresh (3), session (3), reload (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), information (2), community (2), status (2), footer (2), view (2), unique (2), membership (2), testing (2), here (2), 500 (2), than (2), unordered (2), iterating (2), over (2), them (2), creates (2), 493 (2), symmetric (2), union (2), intersection (2), duplicate (2), 485 (2), many (2), variables (2), 475 (2), 473 (2), 469 (2), comma (2), 460 (2), 例えば以下のようにします (2), constructed (2), has (2), these (2), containing (2), 454 (2), namedtuples (2), namedtuple (2), アンパック (2), accessed (2), their (2), usually (2), case (2), later (2), indexing (2), often (2), however (2), interpreted (2), ただし (2), does (2), 88888 (2), consists (2), instance (2), 414 (2), saw (2), strings (2), common (2), 408 (2), 406 (2), find (2), error (2), 399 (2), 397 (2), entire (2), 395 (2), 384 (2), これは (2), slice (2), method (2), returns (2), 376 (2), raise (2), exception (2), would (2), cat (2), eggs (2), int (2), only (2), creating (2), when (2), describes (2), 330 (2), 327 (2), statements (2), functions (2), complex (2), implement (2), 313 (2), 311 (2), 304 (2), context (2), previous (2), 300 (2), 297 (2), 295 (2), 289 (2), 3x4 (2), 283 (2), 281 (2), 1416 (2), 14159 (2), str (2), round (2), math (2), 276 (2), syntaxerror (2), forget (2), around (2), target (2), square (2), strip (2), abs (2), parenthesized (2), 231 (2), 229 (2), 226 (2), equal (2), clauses (2), zero (2), concise (2), 217 (2), 215 (2), 213 (2), map (2), lambda (2), 211 (2), 200 (2), 198 (2), subsequence (2), make (2), が到着 (2), arrive (2), now (2), leaves (2), arrives (2), class (2), appends (2), complexity (2), inserts (2), beginning (2), retrieved (2), 164 (2), 144 (2), 137 (2), might (2), 126 (2), structures (2), tangerine (2), 100 (2), shallow (2), search (2), を送出します (2), indexerror (2), リスト (2), things (2), about (2), plural (2), version (2), team (2), doc (2), inada (2), naoki (2), songofacandy (2), gmail (2), date (2), 0000 (2), takanori (2), 1627 (2), 1488 (2), loc (2), path (2), breadcrumbs (2), latest (2), insights (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, action, share, personal, manage, cookies, contact, privacy, terms, inc, remainder, alacazam, abracadabra, demonstrate, words, false, crabgrass, true, removed, print, show, duplicates, been, 簡単なデモンストレーションを示します, brief, demonstration, 順序で現れることがあります, 集合には順序がないため, 反復処理したり表示したりすると, 要素が予想とは異なる, expect, printing, produce, タ構造です, ではなく, 後者は空の辞書を作成します, 辞書は次のセクションで議論するデー, 空集合を作成するためには, を使用しなければなりません, 中括弧, または, 関数は, を生成するために使用することができま, dictionary, structure, discuss, latter, curly, braces, 対称差, といった数学的な演算もサポートしています, オブジェクトは, 基本的な用途には, 要素が含まれるかどうかの判定や, 重複する要素の除去がありま, 集合とは, 重複する要素をもたない, 順序づけられていない要素の集まりです, を扱うためのデータ型もあります, mathematical, eliminating, entries, collection, basic, include, includes, 集合型, クを組み合わせたものに過ぎないことに注意してください, ことが要求されます, 複数同時の代入が実はタプルのパックとシーケンスのアンパッ, 等号の左辺に列挙されている変数が, 右辺のシーケンスの長さと同じ数だけある, 右辺には全てのシーケンス型を使うことができます, シーケンスのアンパックで, この操作は, シーケンスのアンパック, とでも呼ぶべきもの, multiple, really, combination, left, equals, right, hand, requires, called, appropriately, enough, の演算も可能です, が一つのタプルにパックされます, タプルのパック, の例で, together, operation, packed, 末尾にカンマがあることに注意, trailing, むだけでは不十分です, ことで構築できます, 美しくはないけれども, 効果的です, 一つの要素を持つタプルは, 値の後ろにコンマを続ける, 単一の値を丸括弧で囲, 構文には特別な細工がされています, 空のタプルは空の丸括弧ペアで構築できま, 問題は, 個または, 個の項目からなるタプルの構築です, これらの操作を行うた, enclose, single, ugly, effective, sufficient, pair, syntax, extra, quirks, accommodate, special, problem, construction, してアクセスします, リストは, 要素は通常同じ型であり, リストを反復処理, きます, スします, では属性でもアクセスで, 要素には, この節の後半で説明します, やインデックスを使ってアクセ, タプルは, 通常は異なる型の要素が並びます, タプルはリストと似て見えますが, 使う場面や目的は異なることが多いです, homogeneous, even, attribute, heterogeneous, via, situations, purposes, though, seem, しかし, タプルにリストのような変更可能なオブジェクトを含めることはできます, タプルの各要素に代入することはできません, 一部だった場合は, 丸括弧が必要な場合もあります, タプルを書くときは必ずしも丸括弧で囲まなくてもいいですが, タプルが大きな式の, 解釈されるようになっています, ご覧のとおり, タプルの表示には常に丸括弧がついていて, タプルのネストが正しく, individual, part, larger, assign, surrounding, although, necessary, anyway, correctly, output, always, enclosed, リストと同様にアンパックもサポートする, 可変オブジェクトを含めることはできる, タプルは不変, タプルはネストできる, タプルはコンマで区切られたいくつかの値からなります, 例えば以下のように書きま, separated, commas, もう一つあります, タプル, 型です, 他のシーケンスデータ型が追加されるかもしれません, 標準のシーケンス型は, を参照, の二つの例です, はまだ進歩の過程にある言語な, 性質があることを見てきました, これらは, シーケンス, データ型, リストや文字列には, インデクスやスライスを使った演算のように, 数多くの共通の, standard, since, evolving, slicing, examples, properties, タプルとシーケンス, sequences, なります, の別の用途についてはまた後で取り上げます, この文の後で名前, を参照すると, 別の値を, に代入するまで, エラーに, assigned, referencing, name, hereafter, least, until, は変数全体の削除にも使えます, delete, こともできます, 以前はスライスに空のリストを代入して行っていました, 文はリストからスライスを除去したり, リストの全要素を削除する, メソッドと違い, 値を返しません, それが, 文です, あります, リストから要素を削除する際, 値を指定する代わりにインデックスを指定する方法が, earlier, slices, clear, differs, instead, されます, の中のオブジェクトがイテラブルでなければ, この式でも例外が送出, again, これはリストだけでなく, 任意のイテラブルオブジェクトで使えます, の各要素がアンパックされる点に注意してください, effect, unpacked, これにより, 任意の数のイテラブルを連結した新しいリストを作成できます, リスト内包表記でもアンパックを使えます, representing, concatenation, iterables, イテラブルでないオブジェクトをアンパックしようとすると, 例外が送出されま, 場合だけです, この方法を使えるのは, に続く式の評価結果がイテラブルオブジェクトになる, trying, non, evaluates, パックされ, 各要素が作成中のリストに追加されます, リストの要素を指定するときに式の先頭に, を付けると, その式の結果がアン, アンパックは, リストの作成など他の場面でも使えます, ています, の要素を, それぞれを関数の実引数として個別に渡す方法を説明し, の節では, を使ってイテラブルオブジェクト, adding, prefixing, specifying, contexts, providing, separately, リストとリスト内包表記でのアンパック, 照してください, この行にあるアスタリスクの詳細については, details, asterisk, この用途には, 関数が適しています, 実際のコードでは, 複雑な制御フローの文よりも組み込み関数を優先すべきです, great, job, real, world, should, prefer, built, flow, 以下の3行はネストされたリスト内包表記と同じ実装, これをもう一度変換すると, 次のコードと等価になります, turn, トの中で評価されます, そのため, この例は次のコードと等価です, 前の節で見たように, 内側のリスト内包表記は, のコンテキス, follows, inner, evaluated, 次のリスト内包表記は, の行と列を入れ替えます, transpose, rows, columns, のリスト, つからなるリストで実装した, の行列について考えま, length, consider, implemented, ともできます, リスト内包表記中の最初の式は任意の式なので, そこに他のリスト内包表記を書くこ, including, initial, ネストしたリストの内包表記, リスト内包表記では複雑な式や入れ子になった関数呼び出しも使えます, expressions, 2つの, を持つリスト内包表記でリストをフラットにする, タプルを丸括弧で囲まないとエラーになる, のような2要素のタプルのリストを作る, 各要素のメソッドを呼び出す, すべての要素に関数を適用する, リストから負の数を除く, 値を2倍にした新しいリストを作る, flatten, otherwise, raised, apply, filter, exclude, negative, numbers, doubled, 式がタプルの場合は前の例の, のように丸括弧で囲む必要があります, に注目してください, どちらのコードでも, 文の順序が同じであること, snippets, how, これは次のコードと等価です, ない要素同士を組み合わせてペアを作ります, する新しいリストを作ります, 例えば次のリスト内包表記は, 2つのリストから等しく, 句に従って式を評価し, その結果を要素と, 句または, 句を角括弧で囲んだものです, 式に続, リスト内包表記は, 式とそれに続く, さらに0個以上, follow, combines, resulting, evaluating, clause, then, brackets, followed, これはより簡潔で読みやすいです, readable, もしくは, 以下でも同じです, equivalently, 平方のリストを計算できます, 数がループ終了後も残ることに注意してください, 次のように書けば, 副作用なしで, このコードは, という名前の変数を作るか, 既存の変数を上書きします, この変, effects, exists, loop, completes, calculate, overwrites, variable, named, still, 次のような平方のリストを作りたいとします, assume, want, 件を満たす要素だけを取り出して部分シーケンスを作ることもできます, に操作を適用した結果から新しいリストを作るときによく使います, 特定の条, リスト内包表記を使うとリストを簡潔に作れます, シーケンスやイテラブルの各要素, those, satisfy, certain, condition, applied, member, applications, provide, リスト内包表記, 残っている人を到着順に表示, 2番目に到着した人が去る, 最初に到着した人が去る, remaining, arrival, second, 素を高速に追加, 取り出しできるように設計されています, 例えば次のように使いま, キューの実装には, このクラスは両端で要, ends, was, designed, ずつずらす必要があるためです, 詳しくは, を参照してくだ, 高速ですが, 先頭での挿入や取り出しには時間がかかります, 他のすべての要素を1つ, えますが, この用途では効率がよくありません, リストの末尾での追加や取り出しは, リストは最初に追加した要素を最初に取り出す, 先入れ先出し, のキューとしても使, shifted, doing, slow, efficient, purpose, while, リストをキューとして使う, queues, うにします, 出すには, インデックスを指定せずに, 例えば次のよ, 上に要素を追加するには, 一番上から要素を取り, 後に追加した要素を最初に取り出す, 後入れ先出し, の仕組みです, スタックの一番, リストのメソッドを使えば, リストを簡単にスタックとして使えます, スタックは最, explicit, retrieve, very, easy, リストをスタックとして使う, stacks, な比較ではありません, 順序関係が定義されていない型もあります, は有効, 数は文字列と比べられませんし, は他の型と比べられないからです, うことです, はソートされません, なぜなら整, もうひとつ気付くとしたら, すべてのデータでソートや比較できるわけではないとい, relation, isn, valid, comparison, don, defined, ordering, integers, doesn, thing, notice, の変更可能なデータ構造全てについての設計上の原則となってい, これらのメソッドはデフォルトの, を返しています, が表示されていないことに気が付いたかもしれません, リストの変更だけを行うメソッドの戻り値, default, design, principle, modify, printed, noticed, インデックス4から数えて次の, の位置, starting, 以下にリストのメソッドをほぼ全て使った例を示します, リストの浅い, コピーを返します, リストの要素を, インプレース演算で逆順にします, の説明を参照してください, やりかた, でソートします, 引数はソート方法のカスタマイズに使えま, リストの項目を, インプレース演算, 元のデータを演算結果で置き換える, customization, explanation, がリスト内に現れる回数を返します, times, appears, ト全体の先頭からの位置になります, 範囲を指定できます, 返される添字は, 引数からの相対位置ではなく, 任意の引数である, はスライス記法として解釈され, リストの探索, rather, returned, computed, relative, full, notation, limit, particular, optional, から数えます, 該当する要素がなければ, リスト内で, が最初に現れる位置のインデックスを返します, インデックス, based, occurrence, リスト中の全ての要素を削除します, します, が空であるか, インデックスがリストの範囲外の場合は, を送出, されていない場合, はリスト末尾の要素を取り除いて返します, 指定された位置の要素をリストから取り除き, それを返します, インデックスが指定, outside, specified, removes, と等しい値を持つ最初の要素をリストから削除します, 該当する要素がなけ, whose, 価です, の先頭に挿入を行います, クスを持つ要素の直前に挿入が行われます, 従って, はリスト, 指定した位置に要素を挿入します, 引数は, リストのインデクスで, そのインデ, before, front, のすべての要素をリストの末尾に追加します, extend, appending, リストの末尾に要素を一つ追加します, オブジェクトのすべてのメソッドを以下に示します, 型には, 他にもいくつかメソッドがあります, リスト型についてもう少し, いことを追加します, この章では, すでに学んだことについてより詳しく説明するとともに, いくつか新し, detail, adds, well, chapter, learned, already, データ構造, forms, nplurals, transfer, encoding, 8bit, text, plain, charset, utf, mime, japanese, https, app, transifex, teams, 5390, translator, revision, pot, creation, report, bugs, project, fuzzy, masahiro, ito, suzuki, takanory, net, bot, translators, author, email, address, year, distributed, under, license, package, copyright, 2001, software, foundation, descriptive, title, 1000, 999, 998, 997, 996, 995, 994, 993, 992, 991, 990, 989, 988, 987, 986, 985, 984, 983, 982, 981, 980, 979, 978, 977, 976, 975, 974, 973, 972, 971, 970, 969, 968, 967, 966, 965, 964, 963, 962, 961, 960, 959, 958, 957, 956, 955, 954, 953, 952, 951, 950, 949, 948, 947, 946, 945, 944, 943, 942, 941, 940, 939, 938, 937, 936, 935, 934, 933, 932, 931, 930, 929, 928, 927, 926, 925, 924, 923, 922, 921, 920, 919, 918, 917, 916, 915, 914, 913, 912, 911, 910, 909, 908, 907, 906, 905, 904, 903, 902, 901, 900, 899, 898, 897, 896, 895, 894, 893, 892, 891, 890, 889, 888, 887, 886, 885, 884, 883, 882, 881, 880, 879, 878, 877, 876, 875, 874, 873, 872, 871, 870, 869, 868, 867, 866, 865, 864, 863, 862, 861, 860, 859, 858, 857, 856, 855, 854, 853, 852, 851, 850, 849, 848, 847, 846, 845, 844, 843, 842, 841, 840, 839, 838, 837, 836, 835, 834, 833, 832, 831, 830, 829, 828, 827, 826, 825, 824, 823, 822, 821, 820, 819, 818, 817, 816, 815, 814, 813, 812, 811, 810, 809, 808, 807, 806, 805, 804, 803, 802, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, 752, 751, 750, 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, 734, 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 635, 634, 633, 632, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 499, 498, 497, 496, 495, 494, 492, 491, 490, 489, 488, 487, 486, 484, 483, 482, 481, 480, 479, 478, 477, 476, 474, 472, 471, 470, 468, 467, 466, 465, 464, 463, 462, 461, 459, 458, 457, 456, 455, 453, 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416, 415, 413, 412, 411, 410, 409, 407, 405, 404, 403, 402, 401, 400, 398, 396, 394, 393, 392, 391, 390, 389, 388, 387, 386, 385, 383, 382, 381, 380, 379, 378, 377, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 332, 331, 329, 328, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 312, 310, 309, 308, 307, 306, 305, 303, 302, 301, 299, 298, 296, 294, 293, 292, 291, 290, 288, 287, 286, 285, 284, 282, 280, 279, 278, 277, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 230, 228, 227, 225, 224, 223, 222, 221, 220, 219, 218, 216, 214, 212, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 199, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 143, 141, 140, 139, 138, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, edit, open, symbols, panel, download, metadata, controls, commit, expand, tree, files, pull, requests, issues, message, dismiss, alert, switched, accounts, appearance, settings, pricing, event, talks, workshops, what, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, enterprises, stage, businesses, source, improvements, across, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, projects, automated, work, hosting, review, collaboration, platform, menu, skip,
|