Results of 1 - 2 of about 2 for bandclass (0.002 sec.)
- __main__ --- トップレベルのコード環境 — Python 3.14.8 ドキュメント 11228
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » __main__ --- トップレベルのコード環境 テーマ 自動 ライト ダーク | __main__ --- トップレベルのコード環境
...__main__.py file is used to provide a command-line interface for a package. Consider the following hypothetical package, "bandclass": bandclass ├── __init__.py ├── __main__.py └── student.py __main__.py will be executed when the package itself is invoked...directly from the command line using the -m flag. For example: $ python -m bandclass This command will cause __main__.py to run. How you utilize this mechanism will depend on the nature of the package you ar...e writing, but in this hypothetical case, it might make sense to allow the teacher to search for students: # bandclass/__main__.py import sys from .student import search_students student_name = sys . argv [ 1 ] if len ( sys . argv ) >= 2 els... - https://man.mtool.work/python/3.14/library/__main__.html
- __main__ --- トップレベルのコード環境 — Python 3.14.8 ドキュメント 7485
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » __main__ --- トップレベルのコード環境 テーマ 自動 ライト ダーク | __main__ --- トップレベルのコード環境
...__main__.py file is used to provide a command-line interface for a package. Consider the following hypothetical package, "bandclass": bandclass ├── __init__.py ├── __main__.py └── student.py __main__.py will be executed when the package itself is invoked...directly from the command line using the -m flag. For example: $ python -m bandclass This command will cause __main__.py to run. How you utilize this mechanism will depend on the nature of the package you ar...e writing, but in this hypothetical case, it might make sense to allow the teacher to search for students: # bandclass/__main__.py import sys from .student import search_students student_name = sys . argv [ 1 ] if len ( sys . argv ) >= 2 els... - https://man.mtool.work/python/3.14/library/__main__.html
PREV
1
NEXT