Results of 1 - 10 of about 16 for formatted (0.006 sec.)
- pprint --- データの整形表示 13429
- pprint --- データの整形表示 ソースコード: Lib/pprint.py pprint モジュールは、任意の Python データ構造を、インタープリタへの入力に使える形式で「整形表示」する機能を提供します。 整形するデータ構造に Python の基本的な型以外のオブジェクトが含ま
...ト)の場合、フォーマットされるオブジェクトの深さに制約はありません。 compact ( bool ) -- Control the way long sequences are formatted. If False (the default), each item of a sequence will be formatted on a separate line, otherwise as many items as will fit...within the width will be formatted on each output line. sort_dicts ( bool ) -- Trueの場合、辞書は辞書のキー順にソートされて整形されます。そうでなければ挿入順...indent = 1 , width = 80 , depth = None , * , compact = False , sort_dicts = True , underscore_numbers = False ) Return the formatted representation of object as a string. indent , width , depth , compact , sort_dicts and underscore_numbers are passed to t... - https://man.mtool.work/python/3.14/library/pprint.html
- traceback --- スタックトレースの表示または取得 11679
- traceback --- スタックトレースの表示または取得 ソースコード: Lib/traceback.py このモジュールは、Python プログラムのスタックトレースを抽出、書式化、表示する標準的なインターフェースを提供します。 インタープリタのデフォルトのトレースバック表示
.... print_list ( extracted_list , file = None ) Print the list of tuples as returned by extract_tb() or extract_stack() as a formatted stack trace to the given file. If file is None , the output is written to sys.stderr . traceback. format_list ( extracted_...* print_exc:" ) traceback . print_exc ( limit = 2 , file = sys . stdout ) print ( "*** format_exc, first and last line:" ) formatted_lines = traceback . format_exc () . splitlines () print ( formatted_lines [ 0 ]) print ( formatted_lines [ - 1 ]) print (... - https://man.mtool.work/python/3.14/library/traceback.html
- unittest --- ユニットテストフレームワーク 10362
- unittest --- ユニットテストフレームワーク ソースコード: Lib/unittest/__init__.py (すでにテストの基本概念について詳しいようでしたら、この部分をとばして アサートメソッド一覧 に進むと良いでしょう。) unittest ユニットテストフレームワークは、もと
...に呼び出されます。 err は sys.exc_info() が返すタプル (type, value, traceback) です。 デフォルトの実装では、タプル、 (test, formatted_err) をインスタンスの errors 属性に追加します。ここで、 formatted_err は、 err から導出される、整形されたトレースバックです...に呼び出されます。 err は sys.exc_info() が返すタプル (type, value, traceback) です。 デフォルトの実装では、タプル、 (test, formatted_err) をインスタンスの failures 属性に追加します。ここで、 formatted_err は、 err から導出される、整形されたトレースバックで...Failure デコレータが付いたテストケース test が失敗するか、エラーになったときに呼び出されます。 デフォルトの実装では (test, formatted_err) のタプルをインスタンスの expectedFailures に追加します。ここで formatted_err は err から派生した整形されたトレースバッ... - https://man.mtool.work/python/3.14/library/unittest.html
- calendar --- 一般的なカレンダーに関係する機能群 9478
- calendar --- 一般的なカレンダーに関係する機能群 ソースコード: Lib/calendar.py このモジュールは Unix の cal プログラムのようなカレンダー出力を行い、それに加えてカレンダーに関する有益な関数群を提供します。標準ではこれらのカレンダーは(ヨーロッ
...インスタンスには以下のメソッドがあります: formatday ( theday , weekday , width ) Return a string representing a single day formatted with the given width . If theday is 0 , return a string of spaces of the specified width, representing an empty day. The w...定した週の最初の曜日に従います。 formatweekday ( weekday , width ) Return a string representing the name of a single weekday formatted to the specified width . The weekday parameter is an integer representing the day of the week, where 0 is Monday and 6 is... - https://man.mtool.work/python/3.14/library/calendar.html
- token --- Python 解析木で使われる定数 9045
- token --- Python 解析木で使われる定数 ソースコード: Lib/token.py このモジュールは解析木の葉ノード(終端記号)の数値を表す定数を提供します。言語の文法のコンテキストにおける名前の定義については、 Python ディストリビューションのファイル Grammar/
.... NUMBER 数値リテラル を示すトークン値です。 token. STRING Token value that indicates a string or byte literal , excluding formatted string literals . The token string is not interpreted: it includes the surrounding quotation marks and the prefix (if give... - https://man.mtool.work/python/3.14/library/token.html
- Python チュートリアル 8594
- Python チュートリアル Tip このチュートリアルは Python を初めて学ぶ プログラマー 向けです。プログラミングを初めて学ぶ 初心者 向け ではありません 。 Python は学びやすく強力なプログラミング言語です。効率的な高レベルのデータ構造と、シンプルなが
...ジ 6.4.1. パッケージから * を import する 6.4.2. パッケージ内参照 7. Input and Output 7.1. Fancier Output Formatting 7.1.1. Formatted String Literals 7.1.2. The String format() Method 7.1.3. Manual String Formatting 7.1.4. 古い文字列書式設定方法 7.2. Readi... - https://man.mtool.work/python/3.14/tutorial/
- pathlib --- オブジェクト指向のファイルシステムパス 8161
- pathlib --- オブジェクト指向のファイルシステムパス Added in version 3.4. ソースコード: Lib/pathlib/ このモジュールはファイルシステムのパスを表すクラスを提供していて、様々なオペレーティングシステムについての適切な意味論をそれらのクラスに持た
...in <module> File "pathlib.py" , line 941 , in relative_to raise ValueError ( error_message . format ( str ( self ), str ( formatted ))) ValueError : '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other is absolute. walk_up...in <module> File "pathlib.py" , line 941 , in relative_to raise ValueError ( error_message . format ( str ( self ), str ( formatted ))) ValueError : '/etc/passwd' is not on the same drive as 'foo' OR one path is relative and the other is absolute. 警告 こ... - https://man.mtool.work/python/3.14/library/pathlib.html
- The Python Profilers 8161
- 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
...long various parts of the program executed. These statistics can be formatted into reports via the pstats module. The Python standard library provides two different implementations of the same profili... - https://man.mtool.work/python/3.14/library/profile.html
- email.policy: ポリシーオブジェクト 7728
- email.policy : ポリシーオブジェクト Added in version 3.3. ソースコード: Lib/email/policy.py email パッケージの主な目的は、メールや MIME に関する各種 RFC に従ってメールメッセージを扱うことです。 しかし、メールの一般的な形式はメール以外の用途
...ers in headers by encoding them as "encoded words". If True , follow RFC 6532 and use utf-8 encoding for headers. Messages formatted in this way may be passed to SMTP servers that support the SMTPUTF8 extension ( RFC 6531 ). refold_source Message オブジェ... - https://man.mtool.work/python/3.14/library/email.policy.html
- string --- 一般的な文字列操作 7728
- string --- 一般的な文字列操作 ソースコード: Lib/string/__init__.py 参考 テキストシーケンス型 --- str 文字列メソッド 文字列定数 このモジュールで定義されている定数は以下の通りです: string. ascii_letters 後述の ascii_lowercase と ascii_upperca
...の前に fill 文字を付けることができます。 この文字には任意の文字を指定でき、省略された場合はデフォルトの空白文字となります。 formatted string literal の中や str.format() メソッドを使う場合はリテラルの波括弧 (" { " と " } ") を fill 文字として使えないことに注... - https://man.mtool.work/python/3.14/library/string.html