Results of 1 - 10 of about 31 for width (0.007 sec.)
- textwrap --- テキストの折り返しと詰め込み 13330
- textwrap --- テキストの折り返しと詰め込み ソースコード: Lib/textwrap.py textwrap モジュールは、実際の処理をすべて担う TextWrapper クラスと、いくつかの便利な関数を提供します。 1 つか 2 つの文字列を折り返したり詰め込んだりするだけなら、これら
...の関数で十分でしょう。 それ以外の場合は、効率のために TextWrapper のインスタンスを使ってください。 textwrap. wrap ( text , width = 70 , * , initial_indent = '' , subsequent_indent = '' , expand_tabs = True , replace_whitespace = True , fix_sentence_en...phens = True , tabsize = 8 , max_lines = None , placeholder = ' [...]' ) text (文字列) に含まれる 1 つの段落を、各行が最大 width 文字になるように折り返します。 行末に改行文字を含まない出力行のリストを返します。 オプションのキーワード引数は、以下で説明...属性に対応しています。 wrap() の動作についての詳細は TextWrapper.wrap() メソッドを参照してください。 textwrap. fill ( text , width = 70 , * , initial_indent = '' , subsequent_indent = '' , expand_tabs = True , replace_whitespace = True , fix_sentence_en... - https://man.mtool.work/python/3.14/library/textwrap.html
- calendar --- 一般的なカレンダーに関係する機能群 13249
- calendar --- 一般的なカレンダーに関係する機能群 ソースコード: Lib/calendar.py このモジュールは Unix の cal プログラムのようなカレンダー出力を行い、それに加えてカレンダーに関する有益な関数群を提供します。標準ではこれらのカレンダーは(ヨーロッ
..., month ) year 年 month 月の週のリストを返します。週は全て七つの日付の数字からなるリストです。 yeardatescalendar ( year , width = 3 ) 指定された年のデータを整形に向く形で返します。返される値は月の並びのリストです。月の並びは最大で width ヶ月(デフォル...。各月は4ないし6週からなり、各週は1ないし7日からなります。各日は datetime.date オブジェクトです。 yeardays2calendar ( year , width = 3 ) 指定された年のデータを整形に向く形で返します ( yeardatescalendar() と同様です)。週のリストの中が日付の数字と曜日の数...字のタプルになります。月の範囲外の部分の日付はゼロです。 yeardayscalendar ( year , width = 3 ) 指定された年のデータを整形に向く形で返します ( yeardatescalendar() と同様です)。週のリストの中が日付の数字になります... - https://man.mtool.work/python/3.14/library/calendar.html
- pprint --- データの整形表示 10272
- pprint --- データの整形表示 ソースコード: Lib/pprint.py pprint モジュールは、任意の Python データ構造を、インタープリタへの入力に使える形式で「整形表示」する機能を提供します。 整形するデータ構造に Python の基本的な型以外のオブジェクトが含ま
...が該当します。 整形された表現では、可能な限りオブジェクトを一行に収め、指定した幅に収まらない場合は複数行に分割します。 幅は width 引数で調整でき、デフォルトは 80 文字です。 バージョン 3.9 で変更: types.SimpleNamespace の pretty-print サポートが追加され...: dataclasses.dataclass の pretty-print サポートが追加されました。 関数 pprint. pp ( object , stream = None , indent = 1 , width = 80 , depth = None , * , compact = False , sort_dicts = False , underscore_numbers = False ) object のフォーマットされた表...e (デフォルト) の場合は sys.stdout を使います。 indent ( int ) -- 入れ子レベルごとに追加されるインデントの量を指定します。 width ( int ) -- 出力の1行あたり最大文字数を指定します。構造が幅の制約の中で整形できない場合、最善の努力がなされます。 depth ( i... - https://man.mtool.work/python/3.14/library/pprint.html
- 組み込み型 9803
- 組み込み型 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主要な組み込み型は、数値、シーケンス、マッピング、クラス、インスタンス、および例外です。 コレクションクラスには、ミュータブルなものがあります。コレクシ
...( complex ) 数 z に対して、実部と虚部のハッシュ値は、 hash(z.real) + sys.hash_info.imag * hash(z.imag) の 2**sys.hash_info.width を法とする還元を計算することにより組み合わせられ、よってこれは range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.widt...ュを計算する。""" hash_value = hash_float ( z . real ) + sys . hash_info . imag * hash_float ( z . imag ) # 2**sys.hash_info.width を法として、符号付きの剰余に還元する M = 2 ** ( sys . hash_info . width - 1 ) hash_value = ( hash_value & ( M - 1 )) - ( h...lgorithm is described in section 3.13 'Default Case Folding' of the Unicode Standard . Added in version 3.3. str. center ( width , fillchar = ' ' , / ) 長さ width の文字列の中央に配置して返します。 パディングには指定された fillchar (デフォルトは ASCII... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- turtle --- タートルグラフィックス 9560
- turtle --- タートルグラフィックス ソースコード: Lib/turtle.py Turtle star 単純な動きを繰り返すプログラムで、タートルは複雑な図形を描けます。 x-y 平面の (0, 0) から動き出す、亀のロボットを想像してください。 import turtle の後に turtle.forwar
...ださい。 多くのコマンドには、 forward() に対する fd() のような短い別名もあります。 Pen の制御 例えば color('blue') で色を、 width(3) で線の幅を変えて、もう一度描いてみてください。 移動前に up() でペンを上げると、線を描かずにタートルを移動することもでき...s. turtle. penup ( ) turtle. pu ( ) turtle. up ( ) Lift the pen. The turtle does not draw when it moves. turtle. pensize ( width = None ) turtle. width ( width = None ) パラメータ : width -- a positive number or None Return or set the line thickness....If width is not given, return the current pensize. If resizemode is set to "auto" and the turtle shape is a polygon, that polygon i... - https://man.mtool.work/python/3.14/library/turtle.html
- string --- 一般的な文字列操作 9479
- string --- 一般的な文字列操作 ソースコード: Lib/string/__init__.py 参考 テキストシーケンス型 --- str 文字列メソッド 文字列定数 このモジュールで定義されている定数は以下の通りです: string. ascii_letters 後述の ascii_lowercase と ascii_upperca
...式指定はその結果を変更します。 一般的な書式指定子 ( standard format specifier ) の書式は以下です: format_spec : [ options ][ width_and_precision ][ type ] options : [[ fill ] align ][ sign ][ "z" ][ "#" ][ "0" ] fill : <any character> align : "<" | ">"...| "=" | "^" sign : "+" | "-" | " " width_and_precision : [ width_with_grouping ][ precision_with_grouping ] width_with_grouping : [ width ][ grouping ] precision_w...ith_grouping : "." [ precision ][ grouping ] | "." grouping width : digit + precision : digit + grouping : "," | "_" type : "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o"... - https://man.mtool.work/python/3.14/library/string.html
- tkinter.ttk --- Tk のテーマ付きウィジェット 8509
- tkinter.ttk --- Tk のテーマ付きウィジェット ソースコード: Lib/tkinter/ttk.py tkinter.ttk モジュールは、Tk 8.5 で導入されたテーマ付きウィジェット群を提供します。 外観が固定されている従来の tkinter ウィジェットと異なり、プラットフォームのネイ
...ぞれ画像をテキストの上、下、左、右に配置する。 none: デフォルト。もしあれば画像を表示し、そうでなければテキストを表示する。 width 0 より大きい場合、テキストラベルを作成するのにどれくらいのスペースを使うかを文字の幅で指定します。0 より小さい場合、最小の...されたときも同様です。 tkinter.StringVar を参照してください。 values ドロップダウンリストに表示する値のリストを指定します。 width 入力ウィンドウに必要な幅をウィジェットのフォントの平均的なサイズの文字で測った、文字数を指定します。 注釈 Tk 9.1 で locale...左、上、右、下の順で指定します。4 個より少ない場合、デフォルトで下は上と、右は左と、上は左と同じ値が、それぞれ使われます。 width 0 より大きな値が指定されている場合、(内部のパディングを含まない) ペイン領域に必要な幅を指定します。 それ以外の場合、全ての... - https://man.mtool.work/python/3.14/library/tkinter.ttk.html
- tkinter --- Tcl/Tk の Python インターフェース 8040
- tkinter --- Tcl/Tk の Python インターフェース ソースコード: Lib/tkinter/__init__.py tkinter パッケージ ("Tk インターフェース") は、 Tcl/Tk GUI ツールキットに対する標準の Python インターフェースです。 Tk と tkinter は macOS を含むほとんどの
...ウィジェットを重ねたり、独自の配置を精密に指定したりする特殊な用途に適しています。 background . place ( x = 0 , y = 0 , relwidth = 1.0 , relheight = 1.0 ) badge . place ( relx = 1.0 , rely = 0.0 , anchor = "ne" ) 配置は入れ子にして組み立てます。 フレー...イベントフィールド %f focus %A char %h height %E send_event %k keycode %K keysym %s state %N keysym_num %t time %T type %w width %W widget %x x %X x_root %y y %Y y_root %# serial %b num %d detail %D delta 前述の add 引数が影響するのは、自分で設定したバ...) Return the bounding box, in pixels, of a region of the grid laid out in this container, as a 4-tuple (xoffset, yoffset, width, height) . With no arguments the bounding box of the whole grid is returned. If column and row are given, the box spans fr... - https://man.mtool.work/python/3.14/library/tkinter.html
- traceback --- スタックトレースの表示または取得 7878
- traceback --- スタックトレースの表示または取得 ソースコード: Lib/traceback.py このモジュールは、Python プログラムのスタックトレースを抽出、書式化、表示する標準的なインターフェースを提供します。 インタープリタのデフォルトのトレースバック表示
...exc_value , exc_traceback , * , limit = None , lookup_lines = True , capture_locals = False , compact = False , max_group_width = 15 , max_group_depth = 10 ) 後で表示するために例外の情報を取得します。 limit 、 lookup_lines 、 capture_locals の意味は...が偽の場合だけです。 局所変数がキャプチャされたとき、それらはトレースバックに表示されることに注意してください。 max_group_width と max_group_depth は例外グループの書式化を制御します ( BaseExceptionGroup を参照)。 深さはグループのネストの段数、幅は 1...、書式化された出力を切り詰めます。 バージョン 3.10 で変更: compact 引数が追加されました。 バージョン 3.11 で変更: max_group_width と max_group_depth 引数が追加されました。 __cause__ 元々の __cause__ の TracebackException 。 __context__ 元々の __context... - https://man.mtool.work/python/3.14/library/traceback.html
- unicodedata --- Unicode データベース 7878
- unicodedata --- Unicode データベース This module provides access to the Unicode Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the UCD version 16.
...e Canonical Combining Class Values section of the Unicode Character Database for more information. unicodedata. east_asian_width ( chr ) Returns the east asian width assigned to the character chr as string. For a list of widths and or more information... - https://man.mtool.work/python/3.14/library/unicodedata.html