1212# Takanori Suzuki <takanori@takanory.net>, 2023
1313# righteous, 2023
1414# Arihiro TAKASE, 2024
15+ # TENMYO Masakazu, 2024
1516#
1617#, fuzzy
1718msgid ""
1819msgstr ""
1920"Project-Id-Version : Python 3.13\n "
2021"Report-Msgid-Bugs-To : \n "
21- "POT-Creation-Date : 2024-09-06 14:16 +0000\n "
22+ "POT-Creation-Date : 2024-09-20 14:17 +0000\n "
2223"PO-Revision-Date : 2021-06-28 01:50+0000\n "
23- "Last-Translator : Arihiro TAKASE , 2024\n "
24+ "Last-Translator : TENMYO Masakazu , 2024\n "
2425"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
2526"ja/)\n "
2627"MIME-Version : 1.0\n "
@@ -67,6 +68,19 @@ msgid ""
6768"...\n"
6869"More"
6970msgstr ""
71+ ">>> x = int(input(\" Please enter an integer: \" ))\n"
72+ "Please enter an integer: 42\n"
73+ ">>> if x < 0:\n"
74+ "... x = 0\n"
75+ "... print('Negative changed to zero')\n"
76+ "... elif x == 0:\n"
77+ "... print('Zero')\n"
78+ "... elif x == 1:\n"
79+ "... print('Single')\n"
80+ "... else:\n"
81+ "... print('More')\n"
82+ "...\n"
83+ "More"
7084
7185#: ../../tutorial/controlflow.rst:33
7286msgid ""
@@ -124,6 +138,14 @@ msgid ""
124138"window 6\n"
125139"defenestrate 12"
126140msgstr ""
141+ ">>> # 文字列計測:\n"
142+ ">>> words = ['cat', 'window', 'defenestrate']\n"
143+ ">>> for w in words:\n"
144+ "... print(w, len(w))\n"
145+ "...\n"
146+ "cat 3\n"
147+ "window 6\n"
148+ "defenestrate 12"
127149
128150#: ../../tutorial/controlflow.rst:72
129151msgid ""
@@ -152,6 +174,19 @@ msgid ""
152174" if status == 'active':\n"
153175" active_users[user] = status"
154176msgstr ""
177+ "# コレクション作成\n"
178+ "users = {'Hans': 'active', 'Éléonore': 'inactive', '景太郎': 'active'}\n"
179+ "\n"
180+ "# 方針: コピーを反復\n"
181+ "for user, status in users.copy().items():\n"
182+ " if status == 'inactive':\n"
183+ " del users[user]\n"
184+ "\n"
185+ "# 方針: 新コレクション作成\n"
186+ "active_users = {}\n"
187+ "for user, status in users.items():\n"
188+ " if status == 'active':\n"
189+ " active_users[user] = status"
155190
156191#: ../../tutorial/controlflow.rst:94
157192msgid "The :func:`range` Function"
@@ -176,6 +211,14 @@ msgid ""
176211"3\n"
177212"4"
178213msgstr ""
214+ ">>> for i in range(5):\n"
215+ "... print(i)\n"
216+ "...\n"
217+ "0\n"
218+ "1\n"
219+ "2\n"
220+ "3\n"
221+ "4"
179222
180223#: ../../tutorial/controlflow.rst:108
181224msgid ""
0 commit comments