per page, with , order by , clip by
Results of 1 - 10 of about 16 for pair (0.007 sec.)
curses --- 文字セル表示のターミナル処理 12355
curses --- 文字セル表示のターミナル処理 ソースコード: Lib/curses curses モジュールは、移植可能な高度な端末処理の事実上の標準である curses ライブラリへのインターフェースを提供します。 curses が最も広く用いられているのは Unix 環境ですが、Wind ... ポートするには、この関数を使用してください。 端末のデフォルトの前景色と背景色を色番号 -1 に割り当てます。 したがって、 init_pair(x, COLOR_RED, -1) はペア x をデフォルトの背景色に赤の前景色として初期化し、 init_pair(x, -1, COLOR_BLUE) はペア x を青の背 ... 各値は 0 (成分なし) から 1000 (成分の最大量) の範囲です。 その色がサポートされていない場合は例外を送出します。 curses. color_pair ( pair_number ) 指定した色ペアでテキストを表示するための属性値を返します。 最初の 256 個の色ペアだけがサポートされています ... 。 この属性値は A_STANDOUT 、 A_REVERSE 、その他の A_* 属性と組み合わせることができます。 pair_number() はこの関数と逆の処理を行います。 curses. curs_set ( visibility ) カーソルの状態を設定します。 visibility は 0 、 ...
https://man.mtool.work/python/3.14/library/curses.html
Python で Curses プログラミング 12130
Python で Curses プログラミング Author : A.M. Kuchling, Eric S. Raymond Release : 2.04 概要 このドキュメントでは curses 拡張モジュールでテキストモードディスプレイを制御する方法について記述します。 curses ってなに? curses ライブラリは、VT100 ... り間違い」を我慢してください。 curses ライブラリは、前景色 (文字の色) と背景色からなる有限個のカラーペアを管理します。 color_pair() 関数で、カラーペアに対応する属性値を取得できます。 この値は A_REVERSE などのほかの属性とビット単位の OR で組み合わせられ ... 動くとは限りません。 例として、テキスト行をカラーペア 1 を使って表示します: stdscr . addstr ( "Pretty text" , curses . color_pair ( 1 )) stdscr . refresh () As I said before, a color pair consists of a foreground and background color. The init_pair(n, ... f, b) function changes the definition of color pair n , to foreground color f and background color b. Color pair 0 is hard-wired to white on black, and cannot be changed. 色に ...
https://man.mtool.work/python/3.14/howto/curses.html
re --- 正規表現操作 11662
re --- 正規表現操作 ソースコード: Lib/re/ このモジュールは Perl に見られる正規表現マッチング操作と同様のものを提供します。 パターンおよび検索される文字列には、Unicode 文字列 ( str ) や 8 ビット文字列 ( bytes ) を使います。ただし、Unicode 文 ... ポートするようになりました。マッチオブジェクトはアトミックであると見なされます。 Regular Expression Examples Checking for a Pair この例では、マッチオブジェクトをより美しく表示するために、この補助関数を使用します: def displaymatch ( match ): if match i ... 27ak" 、はペア、すなわち同じ値の 2 枚のカードを含みます。正規表現でこれにマッチするには、このように後方参照を使えます: >>> pair = re . compile ( r ".*(.).*\1" ) >>> displaymatch ( pair . match ( "717ak" )) # Pair of 7s. "<Match: '717', groups=('7',)> ... " >>> displaymatch ( pair . match ( "718ak" )) # No pairs. >>> displaymatch ( pair . match ( "354aa" )) # Pair of aces. "<Match: '354aa', groups=('a ...
https://man.mtool.work/python/3.14/library/re.html
email.utils: 各種ユーティリティ 9184
email.utils : 各種ユーティリティ ソースコード: Lib/email/utils.py email.utils モジュールには、いくつかの便利なユーティリティがあります: email.utils. localtime ( dt = None ) Return local time as an aware datetime object. If called without ar ... 変更: オプションのパラメータ strict が追加され、デフォルトで不正な入力を拒否するようになりました。 email.utils. formataddr ( pair , charset = 'utf-8' ) The inverse of parseaddr() , this takes a 2-tuple of the form (realname, email_address) and returns ... the string value suitable for a To or Cc header. If the first element of pair is false, then the second element is returned unmodified. 任意の charset は、 realname が非 ASCII 文字を含んでいる場合にそ ...
https://man.mtool.work/python/3.14/library/email.utils.html
テキスト処理サービス 9184
テキスト処理サービス この章で説明するモジュールは幅広い文字列操作や様々なテキスト処理サービスを提供しています。 バイナリデータ処理 で説明する codecs モジュールも、テキスト処理と深く関係しています。 Python の組み込み文字列型については テキス ... capes Module Contents フラグ 関数 例外 Regular Expression Objects Match Objects Regular Expression Examples Checking for a Pair scanf() をシミュレートする search() vs. match() Making a Phonebook Text Munging Finding all Adverbs Finding all Adverbs an ...
https://man.mtool.work/python/3.14/library/text.html
10. 完全な文法仕様 8508
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... 'not' inversion | comparison # Comparison operators # -------------------- comparison : | bitwise_or compare_op_bitwise_or_pair + | bitwise_or compare_op_bitwise_or_pair : | eq_bitwise_or | noteq_bitwise_or | lte_bitwise_or | lt_bitwise_or | gte_bitw ... ',' [ star_named_expressions ] ] ')' set : '{' star_named_expressions '}' # Dicts # ----- dict : | '{' [ double_starred_kvpairs ] '}' double_starred_kvpairs : ',' . double_starred_kvpair + [ ',' ] double_starred_kvpair : | '**' bitwise_or | kvpair k ... vpair : expression ':' expression # Comprehensions & Generators # --------------------------- for_if_clauses : | for_if_clause + ...
https://man.mtool.work/python/3.14/reference/grammar.html
4. その他の制御フローツール 8040
4. その他の制御フローツール 前章で紹介した while 文の他にも、 Python にはいくつか制御フローツールがあり、本章で説明します。 4.1. if 文 おそらく最もおなじみの文型は if 文でしょう。例えば: >>> x = int ( input ( "Please enter an integer: " )) ... 数として渡すこともできます。 たとえば、 list.sort() はソートキー関数 key を受け取りますが、これにはラムダ関数を渡せます: >>> pairs = [( 1 , 'one' ), ( 2 , 'two' ), ( 3 , 'three' ), ( 4 , 'four' )] >>> pairs . sort ( key = lambda pair : pair [ 1 ]) >>> ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
What's New In Python 3.10 7815
What's New In Python 3.10 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と比較した Python 3.10 の新機能を解説します。Python 3.10 は2021年10月4日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要 -- リリースハイラ ... 加しました。 curses ncurses 6.1 で追加された拡張カラー関数を、 curses.color_content() 、 curses.init_color() 、 curses.init_pair() 、 curses.pair_content() が透過的に使うようになりました。 新しい関数 curses.has_extended_color_support() は、基盤となる ... も文字列化されたアノテーションを元に戻せるようになりました。 (Larry Hastings による貢献、 bpo-43817 。) itertools itertools.pairwise() を追加しました。 (Raymond Hettinger による貢献、 bpo-38200 。) linecache モジュールに __loader__ が定義されていない場 ...
https://man.mtool.work/python/3.14/whatsnew/3.10.html
locale --- 国際化サービス 7589
locale --- 国際化サービス ソースコード: Lib/locale.py locale モジュールは POSIX のロケールデータベースと関連機能へのアクセスを提供します。 POSIX のロケール機構を使うと、ソフトウェアが実行される国ごとの事情をすべて知っていなくても、アプリケー ... 設定を指定します。 ロケールの変更に失敗すると Error を送出します。 成功すると、新しいロケール設定を返します。 If locale is a pair, it is converted to a locale name using the locale aliasing engine. The language code has the same format as a locale name ...
https://man.mtool.work/python/3.14/library/locale.html
socketserver --- ネットワークサーバーのフレームワーク 7589
socketserver --- ネットワークサーバーのフレームワーク ソースコード: Lib/socketserver.py socketserver モジュールを使うと、ネットワークサーバを簡単に作成できます。 利用可能な環境 : not WASI. このモジュールは WebAssembly では動作しないか、利用 ... rver . BaseRequestHandler ): """ This class works similar to the TCP handler class, except that self.request consists of a pair of data and client socket, and since there is no connection the client address must be given explicitly when sending data ...
https://man.mtool.work/python/3.14/library/socketserver.html
PREV 1 2 NEXT