Results of 1 - 10 of about 85 for input (0.004 sec.)
- 超高水準レイヤ 12471
- 超高水準レイヤ この章の関数を使うとファイルまたはバッファにある Python ソースコードを実行できますが、より詳細なやり取りをインタプリタとすることはできないでしょう。 これらの関数の一部は、文法の開始記号を引数に取ります。 利用できる開始記号は
...Py_eval_input 、 Py_file_input 、 Py_single_input 、 Py_func_type_input です。 説明は、それらを引数に取る関数の後にあります。 これらの関...のエンコーディングとエラーハンドラ でデコードされます。 EOFに達すると 0 を返すか、失敗したら負の数を返します。 int ( * PyOS_InputHook ) ( void ) 次に属します: Stable ABI . プロトタイプが int func(void) の関数へのポインタを設定できます。 Python インター...char *func(FILE *stdin, FILE *stdout, const char *prompt) , overriding the default function used to read a single line of input at the interpreter's prompt. The function is expected to output the string prompt if it's not NULL , and then read a line... - https://man.mtool.work/python/3.14/c-api/veryhigh.html
- email.charset: 文字集合の表現 11985
- email.charset : 文字集合の表現 ソースコード: Lib/email/charset.py このモジュールは、レガシーな ( Compat32 ) email API の一部分です。 新しい API では別名の表のみ使われています。 この節の以降のテキストはモジュールの元々のドキュメントです。 こ
...モジュールで使用されます。 このクラスは email.charset モジュールからインポートしてください。 class email.charset. Charset ( input_charset = DEFAULT_CHARSET ) 文字集合を電子メールのプロパティに写像します。 このクラスは、ある特定の文字集合に対し電子メール...ればなりません。 また、文字集合によっては完全に変換する必要があり、電子メールの中では使用できません。 以下ではオプション引数 input_charset について説明します。この値は常に小文字に強制的に変換されます。そして文字集合の別名が正規化されたあと、この値は文字...エンコーディングとメッセージ本体のエンコーディング、および出力時の変換に使われるコーデックを見付けるのに使われます。たとえば input_charset が iso-8859-1 の場合、ヘッダおよびメッセージ本体は quoted-printable でエンコードされ、出力時の変換用コーデックは必... - https://man.mtool.work/python/3.14/library/email.charset.html
- fileinput --- 複数の入力ストリームをまたいだ行を反復する 11120
- fileinput --- 複数の入力ストリームをまたいだ行を反復する ソースコード: Lib/fileinput.py このモジュールは標準入力やファイルの並びにまたがるループを素早く書くためのヘルパークラスと関数を提供しています。単一のファイルを読み書きしたいだけなら、
...open() を参照してください。 典型的な使い方は以下の通りです: import fileinput for line in fileinput . input ( encoding = "utf-8" ): process ( line ) このスクリプトは sys.argv[1:] に列挙されている全ての...れた場合も、 sys.stdin に置き換えられ、 mode と openhook は無視されます。 別のファイル名リストを使いたい時には、そのリストを input() の最初の引数に与えます。 ファイル名が 1 つでも受け付けます。 全てのファイルはデフォルトでテキストモードでオープンされます...。しかし、 input() や FileInput をコールする際に mode パラメータを指定すれば、これをオーバーライドすることができます。オープン中あるいは読み... - https://man.mtool.work/python/3.14/library/fileinput.html
- base64 --- Base16, Base32, Base64, Base85 データのエンコード 10823
- base64 --- Base16, Base32, Base64, Base85 データのエンコード ソースコード: Lib/base64.py このモジュールは、バイナリデータを表示可能な ASCII 文字にエンコードし、エンコードされたデータをバイナリデータに戻す関数を提供します。 RFC 4648 で 規定さ
...alternative alphabet are discarded prior to the padding check. If validate is True , these non-alphabet characters in the input result in a binascii.Error . 厳密な base64 チェックのについての詳細は binascii.a2b_base64() を参照してください May assert...ost this many characters long, excluding the trailing newline. pad controls whether zero-padding applied to the end of the input is fully retained in the output encoding, as done by btoa , producing an exact multiple of 5 bytes of output. This is not...あり、そうでなければ ValueError を送出します。 ignorechars should be a byte string containing characters to ignore from the input. This should only contain whitespace characters, and by default contains all whitespace characters in ASCII. Added in vers... - https://man.mtool.work/python/3.14/library/base64.html
- quopri --- MIME quoted-printable データのエンコードとデコード 10431
- quopri --- MIME quoted-printable データのエンコードとデコード ソースコード: Lib/quopri.py このモジュールは RFC 1521 : "MIME (Multipurpose Internet Mail Extensions) Part One: Mechanisms for Specifying and Describing the Format of Internet Me
...さんある場合には、 base64 モジュールで利用できる base64 エンコーディングのほうがよりコンパクトになります。 quopri. decode ( input , output , header = False ) ファイル input の内容をデコードして、デコードされたバイナリデータをファイル output に書き出しま...す。 input および output は バイナリファイルオブジェクト でなければなりません。オプション引数 header が存在し、かつその値が真である場...ons for Non-ASCII Text" で記述されているところの "Q"-エンコードされたヘッダをデコードするのに使われます。 quopri. encode ( input , output , quotetabs , header = False ) ファイル input の内容をエンコードして、その結果の quoted-printable データをファイル... - https://man.mtool.work/python/3.14/library/quopri.html
- subprocess --- サブプロセス管理 8877
- subprocess --- サブプロセス管理 ソースコード: Lib/subprocess.py subprocess モジュールでは、新しいプロセスを生成し、その標準入力、標準出力、標準エラー出力のパイプに接続して、終了コードを取得できます。 このモジュールは、次のような古いモジュー
...奨します。 より高度な用途では、下層の Popen インターフェースを直接使用できます。 subprocess. run ( args , * , stdin = None , input = None , stdout = None , stderr = None , capture_output = False , shell = False , cwd = None , timeout = None , check = Fa...open コンストラクターの内容と同じになります - この関数のほとんどの引数は Popen インターフェイスに渡されます。 ( timeout 、 input 、 check 、 capture_output は除きます。 ) capture_output が真なら、標準出力と標準エラー出力を捕捉します。 この指定を使うと...作成自体を中断できないため、少なくともプロセス作成にかかる時間が経過するまでは、タイムアウト例外が発生する保証はありません。 input 引数は Popen.communicate() に渡され、サブプロセスの標準入力に送られます。 指定する場合はバイト列にする必要がありますが、 e... - https://man.mtool.work/python/3.14/library/subprocess.html
- traceback --- スタックトレースの表示または取得 8485
- traceback --- スタックトレースの表示または取得 ソースコード: Lib/traceback.py このモジュールは、Python プログラムのスタックトレースを抽出、書式化、表示する標準的なインターフェースを提供します。 インタープリタのデフォルトのトレースバック表示
...より完全な実装については、 code モジュールを参照してください。 import sys , traceback def run_user_code ( envdir ): source = input ( ">>> " ) try : exec ( source , envdir ) except Exception : print ( "Exception in user code:" ) print ( "-" * 60 ) traceb...s >>> TracebackException . from_exception ( exc , limit =- 2 ) . print () Traceback (most recent call last): File "<python-input-1>" , line 6 , in lumberjack bright_side_of_life () ~~~~~~~~~~~~~~~~~~~^^ File "<python-input-1>" , line 10 , in bright_si.... from_exception ( exc , limit =- 2 , capture_locals = True ) . print () Traceback (most recent call last): File "<python-input-1>" , line 6 , in lumberjack bright_side_of_life () ~~~~~~~~~~~~~~~~~~~^^ File "<python-input-1>" , line 10 , in bright_si... - https://man.mtool.work/python/3.14/library/traceback.html
- code --- インタープリター基底クラス 8296
- code --- インタープリター基底クラス ソースコード: Lib/code.py code モジュールはread-eval-print (読み込み-評価-表示)ループをPythonで実装するための機能を提供します。対話的なインタプリタプロンプトを提供するアプリケーションを作るために使える二つ
...ための便利な関数。これは InteractiveConsole の新しいインスタンスを作り、 readfunc が与えられた場合は InteractiveConsole.raw_input() メソッドとして使われるように設定します。 local が与えられた場合は、インタープリターループのデフォルト名前空間として使うた...数が追加されました. バージョン 3.13 で変更: local_exit 引数が追加されました。 code. compile_command ( source , filename = '<input>' , symbol = 'single' ) この関数はPythonのインタプリタメインループ(別名、read-eval-printループ)をエミュレートしようとするプ...プと同じ決定を行います。 source はソース文字列です。 filename はオプションのソースが読み出されたファイル名で、デフォルトで '<input>' です。 symbol はオプションの文法の開始記号で、 'single' (デフォルト)または 'eval' か 'exec' にすべきです。 コマンドが完全... - https://man.mtool.work/python/3.14/library/code.html
- termios --- POSIX スタイルの端末制御 8093
- termios --- POSIX スタイルの端末制御 このモジュールでは端末 I/O 制御のための POSIX 準拠の関数呼び出しインターフェースを提供します。これら呼び出しのための完全な記述については、 Unix マニュアルページの termios(3) を参照してください。これは PO
...、 TCIOFLUSH は両方のキューです。 termios. TCIFLUSH termios. TCOFLUSH termios. TCIOFLUSH Values for the queue selector: the input queue, the output queue, or both queues, respectively. termios. tcflow ( fd , action ) ファイル記述子 fd の入力または出力を...OOFF termios. TCOON termios. TCIOFF termios. TCION Values for the action argument: suspend output, restart output, suspend input, or restart input, respectively. termios. tcgetwinsize ( fd ) ファイル記述子 fd の tty ウィンドウサイズを表すタプル (ws_ro...) new [ 3 ] = new [ 3 ] & ~ termios . ECHO # lflags try : termios . tcsetattr ( fd , termios . TCSADRAIN , new ) passwd = input ( prompt ) finally : termios . tcsetattr ( fd , termios . TCSADRAIN , old ) return passwd 他のマニュアルの関連ページ Linux... - https://man.mtool.work/python/3.14/library/termios.html
- getpass --- 可搬性のあるパスワード入力機構 7999
- getpass --- 可搬性のあるパスワード入力機構 ソースコード: Lib/getpass.py 利用可能な環境 : not WASI. このモジュールは WebAssembly では動作しないか、利用不可です。詳しくは、 WebAssembly プラットフォーム を見てください。 getpass モジュールは 2
...その文字で置き換えられます。 例えば echo_char='*' を指定すると、実際の入力の代わりにアスタリスクを表示します。 If echo-free input is unavailable, getpass() falls back to printing a warning message to stream and reading from sys.stdin and issuing a GetP...assWarning . 注釈 If you call getpass() from within IDLE, the input may be done in the terminal you launched IDLE from rather than the idle window itself. 注釈 On Unix systems, when echo_cha...cular, this means that line editing shortcuts such as Ctrl + U will not work and may insert unexpected characters into the input. バージョン 3.14 で変更: キーボード入力に視覚的なフィードバックを与える echo_char 引数が追加されました。 exception getpass... - https://man.mtool.work/python/3.14/library/getpass.html