-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Sep 22, 2024
1 parent
1e86831
commit ed0eec4
Showing
4 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Python 3.13\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-08-31 10:59+0000\n" | ||
"POT-Creation-Date: 2024-09-20 14:17+0000\n" | ||
"PO-Revision-Date: 2021-06-28 01:49+0000\n" | ||
"Last-Translator: Nozomu Kaneko <[email protected]>, 2023\n" | ||
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,16 @@ | |
# Takanori Suzuki <[email protected]>, 2023 | ||
# righteous, 2023 | ||
# Arihiro TAKASE, 2024 | ||
# TENMYO Masakazu, 2024 | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Python 3.13\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-09-06 14:16+0000\n" | ||
"POT-Creation-Date: 2024-09-20 14:17+0000\n" | ||
"PO-Revision-Date: 2021-06-28 01:50+0000\n" | ||
"Last-Translator: Arihiro TAKASE, 2024\n" | ||
"Last-Translator: TENMYO Masakazu, 2024\n" | ||
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" | ||
"ja/)\n" | ||
"MIME-Version: 1.0\n" | ||
|
@@ -67,6 +68,19 @@ msgid "" | |
"...\n" | ||
"More" | ||
msgstr "" | ||
">>> x = int(input(\"Please enter an integer: \"))\n" | ||
"Please enter an integer: 42\n" | ||
">>> if x < 0:\n" | ||
"... x = 0\n" | ||
"... print('Negative changed to zero')\n" | ||
"... elif x == 0:\n" | ||
"... print('Zero')\n" | ||
"... elif x == 1:\n" | ||
"... print('Single')\n" | ||
"... else:\n" | ||
"... print('More')\n" | ||
"...\n" | ||
"More" | ||
|
||
#: ../../tutorial/controlflow.rst:33 | ||
msgid "" | ||
|
@@ -124,6 +138,14 @@ msgid "" | |
"window 6\n" | ||
"defenestrate 12" | ||
msgstr "" | ||
">>> # 文字列計測:\n" | ||
">>> words = ['cat', 'window', 'defenestrate']\n" | ||
">>> for w in words:\n" | ||
"... print(w, len(w))\n" | ||
"...\n" | ||
"cat 3\n" | ||
"window 6\n" | ||
"defenestrate 12" | ||
|
||
#: ../../tutorial/controlflow.rst:72 | ||
msgid "" | ||
|
@@ -152,6 +174,19 @@ msgid "" | |
" if status == 'active':\n" | ||
" active_users[user] = status" | ||
msgstr "" | ||
"# コレクション作成\n" | ||
"users = {'Hans': 'active', 'Éléonore': 'inactive', '景太郎': 'active'}\n" | ||
"\n" | ||
"# 方針: コピーを反復\n" | ||
"for user, status in users.copy().items():\n" | ||
" if status == 'inactive':\n" | ||
" del users[user]\n" | ||
"\n" | ||
"# 方針: 新コレクション作成\n" | ||
"active_users = {}\n" | ||
"for user, status in users.items():\n" | ||
" if status == 'active':\n" | ||
" active_users[user] = status" | ||
|
||
#: ../../tutorial/controlflow.rst:94 | ||
msgid "The :func:`range` Function" | ||
|
@@ -176,6 +211,14 @@ msgid "" | |
"3\n" | ||
"4" | ||
msgstr "" | ||
">>> for i in range(5):\n" | ||
"... print(i)\n" | ||
"...\n" | ||
"0\n" | ||
"1\n" | ||
"2\n" | ||
"3\n" | ||
"4" | ||
|
||
#: ../../tutorial/controlflow.rst:108 | ||
msgid "" | ||
|