Results of 1 - 10 of about 51 for Store (0.010 sec.)
- optparse --- コマンドラインオプションのパーサー 15691
- optparse --- コマンドラインオプションのパーサー ソースコード: Lib/optparse.py 引数解析ライブラリの選択 標準ライブラリには、引数を解析するライブラリが三つあります。 getopt : C の手続き型の getopt API に忠実に対応するモジュールです。 optparse
...arse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts , args = parser . parse_args () process ( args , output = opts . output , verbose = opts . verbose ) import a...ArgumentParser () parser . add_argument ( '-o' , '--output' ) parser . add_argument ( '-v' , dest = 'verbose' , action = 'store_true' ) parser . add_argument ( 'rest' , nargs = '*' ) args = parser . parse_args () process ( args . rest , output = args...dest = "filename" , help = "write report to FILE" , metavar = "FILE" ) parser . add_option ( "-q" , "--quiet" , action = "store_false" , dest = "verbose" , default = True , help = "don't print status messages to stdout" ) ( options , args ) = parser... - https://man.mtool.work/python/3.14/library/optparse.html
- ast --- 抽象構文木 12139
- ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在
...the parser uses attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset ) expr_context = Load | Store | Del boolop = And | Or operator = Add | Sub | Mult | MatMult | Div | Mod | Pow | LShift | RShift | BitOr | BitXor | BitAn...ください。 >>> print ( ast . dump ( ast . parse ( 'x = 1' ), indent = 4 )) Module( body=[ Assign( targets=[ Name(id='x', ctx=Store())], value=Constant(value=1))]) class ast. Expression ( body ) Python の単一の 式入力 を表します。 ast.parse() の mode が...p ( ast . parse ( 'x = 1; y = 2' , mode = 'single' ), indent = 4 )) Interactive( body=[ Assign( targets=[ Name(id='x', ctx=Store())], value=Constant(value=1)), Assign( targets=[ Name(id='y', ctx=Store())], value=Constant(value=2))]) class ast. Functio... - https://man.mtool.work/python/3.14/library/ast.html
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー 9966
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー Added in version 3.2. ソースコード: Lib/argparse.py 注釈 argparse は基本的なコマンドラインアプリケーションの実装に推奨される標準ライブラリのモジュールですが、動作を厳密
...引数 parser . add_argument ( '-c' , '--count' ) # 値を取るオプション parser . add_argument ( '-v' , '--verbose' , action = 'store_true' ) # オン/オフフラグ ArgumentParser.parse_args() メソッドはパーサーを実行し、抽出したデータを argparse.Namespace オブ...er = argparse . ArgumentParser ( prog = 'PROG' , allow_abbrev = False ) >>> parser . add_argument ( '--foobar' , action = 'store_true' ) >>> parser . add_argument ( '--foonley' , action = 'store_false' ) >>> parser . parse_args ([ '--foon' ]) usage: P...>>> parser = argparse . ArgumentParser ( exit_on_error = False ) >>> parser . add_argument ( '--integers' , type = int ) _StoreAction(option_strings=['--integers'], dest='integers', nargs=None, const=None, default=None, type=<class 'int'>, choices=No... - https://man.mtool.work/python/3.14/library/argparse.html
- dis --- Python バイトコードの逆アセンブラー 8842
- dis --- Python バイトコードの逆アセンブラー ソースコード: Lib/dis.py dis モジュールは、CPython の bytecode を逆アセンブルして解析するためのものです。 このモジュールが入力として受け取る CPython のバイトコードは Include/opcode.h で定義され、コ
...3.14 で変更: oparg が NB_SUBSCR の場合は、2 オペランドの添字参照を実行します (オペコード BINARY_SUBSCR に代わるものです)。 STORE_SUBSCR 次の処理を実行します。 key = STACK . pop () container = STACK . pop () value = STACK . pop () container [ key ] = v...op () start = STACK . pop () container = STACK . pop () STACK . append ( container [ start : end ]) Added in version 3.12. STORE_SLICE 次の処理を実行します。 end = STACK . pop () start = STACK . pop () container = STACK . pop () value = STACK . pop ()...d in version 3.10. バージョン 3.11 で変更: 以前は、成功 ( True ) または失敗 ( False ) を示す真偽値もプッシュしていました。 STORE_NAME ( namei ) name = STACK.pop() を実行します。 namei は、 コードオブジェクト の co_names 属性内の name のインデックスです... - https://man.mtool.work/python/3.14/library/dis.html
- Argparse チュートリアル 8767
- Argparse チュートリアル author : Tshepang Mbambo このチュートリアルでは、 argparse を丁寧に説明します。 argparse は、Python 標準ライブラリの一部であり、おすすめのコマンドライン引数の解析モジュールです。 注釈 標準ライブラリには、コマンドライ
...parser = argparse . ArgumentParser () parser . add_argument ( "--verbose" , help = "increase output verbosity" , action = "store_true" ) args = parser . parse_args () if args . verbose : print ( "verbosity turned on" ) 実行してみましょう: $ python pro...ラグになりました。この考え方に沿うようにオプションの名前も変更しています。ここで新しいキーワード action を指定し、値として "store_true" を設定していることに注意してください。これは、オプションが指定された場合に値として True を args.verbose に設定すると...= argparse . ArgumentParser () parser . add_argument ( "-v" , "--verbose" , help = "increase output verbosity" , action = "store_true" ) args = parser . parse_args () if args . verbose : print ( "verbosity turned on" ) 上記のプログラムを実行するとこう... - https://man.mtool.work/python/3.14/howto/argparse.html
- 7. iOS で Python を使う 8677
- 7. iOS で Python を使う 著者 : Russell Keith-Magee (2024-03) iOS における Pythonは、デスクトッププラットフォームにおける Python とは異なります。 デスクトッププラットフォームでは、 Python は一般的にコンピューターのどのユーザーでも使えるシステ
...hon コードを呼び出すことです。 それにより、完全な Python インタープリタ、標準ライブラリ、 及び Python のコードが、 iOS App Store を経由して配布可能なスタンドアローンなバンドルとしてパッケージ化されます。 If you're looking to experiment for the first t...性ガイド を参照してください。 7.1.4. バイナリ拡張モジュール プラットフォームとしての iOS についての重要な違いの一つは、 App Store での配布がアプリケーションのパッケージングに厳しい条件を課すということです。 これらの条件の一つは、バイナリ拡張モジュールの...配布方法を規定します。 iOS App Store では、 iOS アプリの全てのバイナリモジュールが、パッケージ化されたアプリの Frameworks フォルダに保存された、適切なメタデータ... - https://man.mtool.work/python/3.14/using/ios.html
- 5. macOS で Python を使う 8437
- 5. macOS で Python を使う このドキュメントでは、Mac コンピュータで Python を使い始める際に知っておくべき、macOS 固有の挙動を概説します。 macOS を実行する Mac 上の Python は、ほかの Unix 派生プラットフォーム上の Python と非常によく似ています
...n. The downloaded file is a standard macOS installer package file ( .pkg ). File integrity information (checksum, size, sigstore signature, etc) for each file is included on the release download page. Installer packages and their contents are signed a...複数のプラットフォームに対応するパッケージングツールで、配布物として単一のファイルまたはフォルダを作成します。 5.5.4. App Store Compliance macOS App Store を通じて配布するために提出するアプリは、Apple のアプリ審査に合格する必要があります。 この審査に...まれています。 これらの違反は誤検出と思われますが、Apple の審査ルールに異議を唱えることはできません。 そのため、アプリが App Store の審査に合格するには、Python 標準ライブラリを変更する必要があります。 Python ソースツリーには、App Store の審査で問題を引き... - https://man.mtool.work/python/3.14/using/mac.html
- venv --- 仮想環境の作成 8123
- venv --- 仮想環境の作成 Added in version 3.3. ソースコード: Lib/venv/ venv モジュールは、軽量な「仮想環境」の作成に対応しています。 各仮想環境は、それぞれの site ディレクトリに独立した Python パッケージ群を持ちます。 仮想環境は、インストール
...in which to create the ' 'virtual environment.' ) parser . add_argument ( '--no-setuptools' , default = False , action = 'store_true' , dest = 'nodist' , help = "Don't install setuptools or pip in the " "virtual environment." ) parser . add_argument...( '--no-pip' , default = False , action = 'store_true' , dest = 'nopip' , help = "Don't install pip in the virtual " "environment." ) parser . add_argument ( '--system-sit...e-packages' , default = False , action = 'store_true' , dest = 'system_site' , help = 'Give the virtual environment access to the ' 'system site-packages dir.' ) if os .... - https://man.mtool.work/python/3.14/library/venv.html
- 4. Windows で Python を使う 7958
- 4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート
...supports updates over time. You can download the Python install manager from python.org/downloads or through the Microsoft Store app . Once you have installed the Python install manager, the global python command can be used from any terminal to launc...さい。 4.1. Python インストールマネージャ 4.1.1. インストール The Python install manager can be installed from the Microsoft Store app or downloaded and installed from python.org/downloads . The two versions are identical. Store からインストールするには...り使えなくなります。 global_dir (なし) Specify the directory where global commands (such as python3.14.exe and pip.exe ) are stored. This directory should be added to your PATH to make the commands available from your terminal. download_dir (なし) ダウン... - https://man.mtool.work/python/3.14/using/windows.html
- pty --- 擬似端末ユーティリティ 7628
- pty --- 擬似端末ユーティリティ ソースコード: Lib/pty.py pty モジュールは、別のプロセスを起動してその制御端末をプログラムから読み書きする、擬似端末の操作を定義します。 利用可能な環境 : Unix. 擬似端末の扱いはプラットフォームに大きく依存します
...ty import sys import time parser = argparse . ArgumentParser () parser . add_argument ( '-a' , dest = 'append' , action = 'store_true' ) parser . add_argument ( '-p' , dest = 'use_python' , action = 'store_true' ) parser . add_argument ( 'filename' ,... - https://man.mtool.work/python/3.14/library/pty.html