python: add page for Japanese (#16694)

* add: python.md to japanese

* fix: style of Japanese

* translate: English placeholders into Japanese

* Update pages.ja/common/python.md

Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>

---------

Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
This commit is contained in:
Daisuke Akagawa
2025-06-02 18:29:51 +09:00
committed by GitHub
parent c4bd162274
commit 15f70d487b
+36
View File
@@ -0,0 +1,36 @@
# python
> Python language インタプリタ。
> もっと詳しく: <https://www.python.org>。
- REPLを開始する (インタラクティブ):
`python`
- 指定したPythonスクリプトを実行:
`python {{Pythonファイルパス}}`
- 指定したPythonスクリプトを実行してREPLを実行:
`python -i {{Pythonファイルパス}}`
- Python実装を文字列で指定して実行する:
`python -c "{{Python実装文字列}}"`
- 指定したライブラリモジュールのスクリプトを実行する:
`python -m {{モジュール名}} {{引数}}`
- `pip`を利用してパッケージをインストールする:
`python -m pip install {{パッケージ}}`
- インタラクティブにPythonスクリプトをデバッグする:
`python -m pdb {{Pythonファイルパス}}`
- ビルトインのHTTPサーバをポート8000版でカレントディレクトリで実行する:
`python -m http.server`