per page, with , order by , clip by
Results of 1 - 10 of about 15 for column (0.008 sec.)
re --- 正規表現操作 12086
re --- 正規表現操作 ソースコード: Lib/re/ このモジュールは Perl に見られる正規表現マッチング操作と同様のものを提供します。 パターンおよび検索される文字列には、Unicode 文字列 ( str ) や 8 ビット文字列 ( bytes ) を使います。ただし、Unicode 文 ... します: from typing import NamedTuple import re class Token ( NamedTuple ): type : str value : int | float | str line : int column : int def tokenize ( code ): keywords = { 'IF' , 'THEN' , 'ENDIF' , 'FOR' , 'NEXT' , 'GOSUB' , 'RETURN' } token_specificat ... on ) line_num = 1 line_start = 0 for mo in re . finditer ( tok_regex , code ): kind = mo . lastgroup value = mo . group () column = mo . start () - line_start if kind == 'NUMBER' : value = float ( value ) if '.' in value else int ( value ) elif kind == ... SMATCH' : raise RuntimeError ( f ' { value !r} unexpected on line { line_num } ' ) yield Token ( kind , value , line_num , column ) statements = ''' IF quantity THEN total := total + price * quantity; tax := price * 0.05; ENDIF; ''' for token in tokeni ...
https://man.mtool.work/python/3.14/library/re.html
tokenize --- Python ソース用のトークナイザー 11372
tokenize --- Python ソース用のトークナイザー ソースコード: Lib/tokenize.py The tokenize module provides a lexical scanner for Python source code, implemented in Python. The scanner in this module returns comments as tokens as well, making i ... uple (srow, scol) of ints specifying the inclusive start position of the token in the source. Rows are numbered from 1 and columns from 0. Columns count Unicode code points; a tab counts as one column, without expanding it to a tab stop. For an ENCODIN ... , 0) . end A 2-tuple (erow, ecol) of ints specifying the exclusive end position of the token. Rows are numbered from 1 and columns from 0. For a token spanning multiple lines, erow is the final row and ecol is the column on that row. For example, the n ... NCODING token, this is (0, 0) . A NEWLINE or NL token inserted at the end of input without a final newline can have an end column one beyond the source text. line A str containing the full source line on which the token was found, including surrounding ...
https://man.mtool.work/python/3.14/library/tokenize.html
tkinter.ttk --- Tk のテーマ付きウィジェット 10797
tkinter.ttk --- Tk のテーマ付きウィジェット ソースコード: Lib/tkinter/ttk.py tkinter.ttk モジュールは、Tk 8.5 で導入されたテーマ付きウィジェット群を提供します。 外観が固定されている従来の tkinter ウィジェットと異なり、プラットフォームのネイ ... 値のリストを持ちます。 データ値はツリーラベルの後に続くカラムに表示されます。 データが表示される順序はウィジェットの displaycolumns オプションで制御されます。ツリーウィジェットはカラムヘッダを表示することもできます。カラムには数字もしくはウィジェットの ... columns オプションにある名前でアクセスできます。 Column Identifiers を参照してください。 それぞれの要素は一意な名前で識別されます。要素の作成時に識別子が与えられなかった場合、ウィ ... び Treeview.yview() メソッドが使えます。 オプション このウィジェットは以下の固有のオプションを受け付けます: オプション 説明 columns カラム数とその名前を指定するカラム識別子のリストです。 displaycolumns どのデータカラムをどの順序で表示するかを指定する、 ...
https://man.mtool.work/python/3.14/library/tkinter.ttk.html
tkinter --- Tcl/Tk の Python インターフェース 10658
tkinter --- Tcl/Tk の Python インターフェース ソースコード: Lib/tkinter/__init__.py tkinter パッケージ ("Tk インターフェース") は、 Tcl/Tk GUI ツールキットに対する標準の Python インターフェースです。 Tk と tkinter は macOS を含むほとんどの ... root = Tk () frm = ttk . Frame ( root , padding = 10 ) frm . grid () ttk . Label ( frm , text = "Hello World!" ) . grid ( column = 0 , row = 0 ) ttk . Button ( frm , text = "Quit" , command = root . destroy ) . grid ( column = 1 , row = 0 ) root . mai ... Tk コードを示します。 ttk :: frame . frm - padding 10 grid . frm grid [ ttk :: label . frm . lbl - text "Hello World!" ] - column 0 - row 0 grid [ ttk :: button . frm . btn - text "Quit" - command "destroy ." ] - column 1 - row 0 Tcl の構文は多くのシェ ... トのパス名を最初の引数とし、その後に任意の引数が続くコマンドです。 例えば、次のようになります。 destroy . grid . frm . btn - column 0 - row 0 一方、ウィジェットオブジェクトのメソッドを呼び出すような形式のものもあります (実際には、Tcl/Tk でウィジェットを作 ...
https://man.mtool.work/python/3.14/library/tkinter.html
sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース 10519
sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース ソースコード: Lib/sqlite3/ SQLite は、軽量なディスク上のデータベースを提供する C ライブラリです。別のサーバプロセスを用意する必要なく、 SQL クエリー言語の非標準的な一種を使用し ... or () さて、今やデータベース接続とカーソルを取得したので、タイトル(title)とリリース年(year)と、レビュー・スコア(score)の列(columns)を持つデータベース・テーブル movie を作成できます。 簡単にするために、テーブル宣言では列名だけを使用できます。SQLite の 柔 ... (1983, "Monty Python's The Meaning of Life") 各行(row)は タプル の (year, title) の 2 つの項目であり、クエリで選択された列(columns)にマッチします。 最後に、 con.close() を呼び出して既存の接続(connection)を閉じ、新しい接続を開き、新しいカーソルを作成して ... ション制御 を参照してください。 sqlite3. PARSE_DECLTYPES このフラグ値を connect() の detect_types パラメーターに渡して、各列(column)で宣言した型を使用して変換関数を探します。型は、データベース・テーブルの作成時に宣言します。 sqlite3 は、宣言された型の、最 ...
https://man.mtool.work/python/3.14/library/sqlite3.html
コードオブジェクト 8115
コードオブジェクト コードオブジェクト(Code objects)は CPython 実装の低レベルな詳細部分です。各オブジェクトは関数に束縛されていない実行可能コードの塊を表現しています。 type PyCodeObject コードオブジェクトを表現するために利用されるC構造体。こ ... Frame_GetLineNumber() instead. int PyCode_Addr2Location ( PyObject * co , int byte_offset , int * start_line , int * start_column , int * end_line , int * end_column ) 渡された int ポインタの参照先に、 byte_offset にある命令のソースコード上の行番号と列 ...
https://man.mtool.work/python/3.14/c-api/code.html
The Python Profilers 7976
The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how ... nduced via recursion. The next line: Ordered by: cumulative time indicates the output is sorted by the cumtime values. The column headings include: ncalls for the number of calls. tottime for the total time spent in the given function (and excluding ti ... tive calls filename:lineno(function) provides the respective data of each function When there are two numbers in the first column (for example 3/1 ), it means that the function recursed. The second value is the number of primitive calls and the former ... ading path information from file names. It is very useful in reducing the size of the printout to fit within (close to) 80 columns. This method modifies the object, and the stripped information is lost. After performing a strip operation, the object is ...
https://man.mtool.work/python/3.14/library/profile.html
json --- JSON エンコーダーとデコーダー 7837
json --- JSON エンコーダーとデコーダー ソースコード: Lib/json/__init__.py JSON (JavaScript Object Notation) は、 RFC 7159 ( RFC 4627 を obsolete) と ECMA-404 によって定義された軽量のデータ交換用のフォーマットです。 JavaScript のオブジェクト ... on -m json { "json": "obj" } $ echo '{1.2:3.4}' | python -m json Expecting property name enclosed in double quotes: line 1 column 2 (char 1) 詳細については コマンドライン・インターフェース を参照してください。 注釈 JSON は YAML 1.2 のサブセットです。 こ ... on -m json { "json": "obj" } $ echo '{1.2:3.4}' | python -m json Expecting property name enclosed in double quotes: line 1 column 2 (char 1) バージョン 3.5 で変更: 出力が、入力と同じ順序になりました。辞書をキーでアルファベット順に並べ替えた出力が欲しけ ...
https://man.mtool.work/python/3.14/library/json.html
csv --- CSV File Reading and Writing 7401
csv --- CSV File Reading and Writing ソースコード: Lib/csv.py CSV (Comma Separated Values、カンマ区切り値列) と呼ばれる形式は、 スプレッドシートやデータベース間でのデータのインポートやエクスポートにおける最も一般的な形式です。 CSVフォーマッ ... econd through n-th rows contain strings where at least one value's length differs from that of the putative header of that column. Twenty-one rows after the header are sampled; if more than half of the columns + rows meet the criteria, True is returned ... りません。 他のマニュアルの関連ページ DuckDB Excel Export PHP pcre.examples Django outputting-csv PHP vtiful-kernel-excel.setColumn DuckDB Loading JSON PHP vtiful-kernel-excel.setRow ...
https://man.mtool.work/python/3.14/library/csv.html
3. データモデル 7401
3. データモデル 3.1. オブジェクト、値、および型 オブジェクト は、Python がデータを抽象化したものです。 Python プログラム内のすべてのデータは、オブジェクトまたはオブジェクト間の関係として表されます。 コードもオブジェクトで表されます。 すべて ... クト内の各 バイトコード 命令のソースコード上の位置を反復するイテラブルを返します。 イテレータは (start_line, end_line, start_column, end_column) を含む tuple を返します。 i 番目のタプルは、 i 番目のコード単位にコンパイルされたソースコードの位置に対応しま ...
https://man.mtool.work/python/3.14/reference/datamodel.html
PREV 1 2 NEXT