12
12
# Takanori Suzuki <[email protected] >, 2023
13
13
# righteous, 2023
14
14
# Arihiro TAKASE, 2024
15
+ # TENMYO Masakazu, 2024
15
16
#
16
17
#, fuzzy
17
18
msgid ""
18
19
msgstr ""
19
20
"Project-Id-Version : Python 3.13\n "
20
21
"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 "
22
23
"PO-Revision-Date : 2021-06-28 01:50+0000\n "
23
- "Last-Translator : Arihiro TAKASE , 2024\n "
24
+ "Last-Translator : TENMYO Masakazu , 2024\n "
24
25
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
25
26
"ja/)\n "
26
27
"MIME-Version : 1.0\n "
@@ -67,6 +68,19 @@ msgid ""
67
68
"...\n"
68
69
"More"
69
70
msgstr ""
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"
70
84
71
85
#: ../../tutorial/controlflow.rst:33
72
86
msgid ""
@@ -124,6 +138,14 @@ msgid ""
124
138
"window 6\n"
125
139
"defenestrate 12"
126
140
msgstr ""
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"
127
149
128
150
#: ../../tutorial/controlflow.rst:72
129
151
msgid ""
@@ -152,6 +174,19 @@ msgid ""
152
174
" if status == 'active':\n"
153
175
" active_users[user] = status"
154
176
msgstr ""
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"
155
190
156
191
#: ../../tutorial/controlflow.rst:94
157
192
msgid "The :func:`range` Function"
@@ -176,6 +211,14 @@ msgid ""
176
211
"3\n"
177
212
"4"
178
213
msgstr ""
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"
179
222
180
223
#: ../../tutorial/controlflow.rst:108
181
224
msgid ""
0 commit comments