per page, with , order by , clip by
Results of 1 - 10 of about 67 for unit (0.054 sec.)
dataclasses --- データクラス — Python 3.14.8 ドキュメント 14126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L ... lasses import dataclass @dataclass class InventoryItem : """Class for keeping track of an item in inventory.""" name : str unit_price : float quantity_on_hand : int = 0 def total_cost ( self ) -> float : return self . unit_price * self . quantity_on_ ... hand とりわけ、以下のような __init__() が追加されます: def __init__ ( self , name : str , unit_price : float , quantity_on_hand : int = 0 ): self . name = name self . unit_price = unit_price self . quantity_on_hand = ... class. Fields that are marked as being excluded from the repr are not included. For example: InventoryItem(name='widget', unit_price=3.0, quantity_on_hand=10) . If the class already defines __repr__() , this parameter is ignored. eq : If true (the d ...
https://man.mtool.work/python/3.14/library/dataclasses.html
dataclasses --- データクラス — Python 3.14.8 ドキュメント 12760
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L ... lasses import dataclass @dataclass class InventoryItem : """Class for keeping track of an item in inventory.""" name : str unit_price : float quantity_on_hand : int = 0 def total_cost ( self ) -> float : return self . unit_price * self . quantity_on_ ... hand とりわけ、以下のような __init__() が追加されます: def __init__ ( self , name : str , unit_price : float , quantity_on_hand : int = 0 ): self . name = name self . unit_price = unit_price self . quantity_on_hand = ... class. Fields that are marked as being excluded from the repr are not included. For example: InventoryItem(name='widget', unit_price=3.0, quantity_on_hand=10) . If the class already defines __repr__() , this parameter is ignored. eq : If true (the d ...
https://man.mtool.work/python/3.14/library/dataclasses.html
変更履歴 — Python 3.14.8 ドキュメント 9161
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... asyncio.print_call_graph() no longer truncates the call stack at a synchronous generator. gh-156970 : Set the docstring of unittest.mock.Mock.return_value . gh-156946 : Fix a crash in curses.panel when the finalizer of a panel's user pointer runs whi ... .evaluate_forward_ref() with the STRING format could leak internal names used by the annotation machinery. gh-150484 : Fix unittest.mock.mock_open() __exit__ raising TypeError when used with contextlib.ExitStack . gh-149816 : Fix a potential use afte ... g. gh-123471 : Make concurrent iterations over itertools.cycle safe under free-threading. gh-120665 : Fixed an issue where unittest loaders would load and instantiate unittest.TestCase -derived subclasses that are also abstract base classes, which ca ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
turtle --- Turtle graphics — Python 3.14.8 ドキュメント 8706
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード ... ¶ パラメータ : angle -- 数 Turn the turtle right by the specified angle . The angle is measured in degrees by default; the unit can be changed with degrees() or radians() . How the heading is measured depends on the turtle mode, see mode() . >>> turt ... ¶ パラメータ : angle -- 数 Turn the turtle left by the specified angle . The angle is measured in degrees by default; the unit can be changed with degrees() or radians() . How the heading is measured depends on the turtle mode, see mode() . >>> turt ... : radius -- 数 extent -- 数または None steps -- 整数または None Draw a circle with the given radius . The center is radius units left of the turtle; extent , an angle, determines which part of the circle is drawn. If extent is not given, draw the ent ...
https://man.mtool.work/python/3.14/library/turtle.html
turtle --- Turtle graphics — Python 3.14.8 ドキュメント 8706
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード ... ¶ パラメータ : angle -- 数 Turn the turtle right by the specified angle . The angle is measured in degrees by default; the unit can be changed with degrees() or radians() . How the heading is measured depends on the turtle mode, see mode() . >>> turt ... ¶ パラメータ : angle -- 数 Turn the turtle left by the specified angle . The angle is measured in degrees by default; the unit can be changed with degrees() or radians() . How the heading is measured depends on the turtle mode, see mode() . >>> turt ... : radius -- 数 extent -- 数または None steps -- 整数または None Draw a circle with the given radius . The center is radius units left of the turtle; extent , an angle, determines which part of the circle is drawn. If extent is not given, draw the ent ...
https://man.mtool.work/python/3.14/library/turtle.html
unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 8706
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー ... スコード: Lib/unittest/__init__.py (すでにテストの基本概念について詳しいようでしたら、この部分をとばして アサートメソッド一覧 に進むと良いでし ... ょう。) The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in o ... tests, aggregation of tests into collections, and independence of the tests from the reporting framework. To achieve this, unittest supports some important concepts in an object-oriented way: テストフィクスチャ (test fixture) テストフィクスチャ ( tes ...
https://man.mtool.work/python/3.14/library/unittest.html
列挙型 HOWTO — Python 3.14.8 ドキュメント 8251
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr ... """ ... Coordinate with binary codes that can be indexed by the int code. ... """ ... def __new__ ( cls , value , label , unit ): ... obj = bytes . __new__ ( cls , [ value ]) ... obj . _value_ = value ... obj . label = label ... obj . unit = unit .. ...
https://man.mtool.work/python/3.14/howto/enum.html
ctypes --- Python 用の外部関数ライブラリ — Python 3.14.8 ドキュメント 8251
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » ctypes --- Python 用の外部関数ライブラリ テーマ 自動 ライト ダーク | ctypes --- Python 用の外 ... et ¶ byte_offset ¶ Offset of the field, in bytes. For bitfields, this is the offset of the underlying byte-aligned storage unit ; see bit_offset . byte_size ¶ Size of the field, in bytes. For bitfields, this is the size of the underlying storage unit ... s instead. is_bitfield ¶ True if this is a bitfield. bit_offset ¶ bit_size ¶ The location of a bitfield within its storage unit , that is, within byte_size bytes of memory starting at byte_offset . To get the field's value, read the storage unit as a ...
https://man.mtool.work/python/3.14/library/ctypes.html
doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 8251
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする ... ows, you'll want a way to run all their doctests systematically. doctest provides two functions that can be used to create unittest test suites from modules and text files containing doctests. To integrate with unittest test discovery, include a load ... _tests function in your test module: import unittest import doctest import my_module_with_doctests def load_tests ( loader , tests , ignore ): tests . addTests ( doctest . ... DocTestSuite ( my_module_with_doctests )) return tests doctest の入ったテキストファイルやモジュールから unittest.TestSuite インスタンスを生成するための主な関数は二つあります: doctest. DocFileSuite ( * paths , module_relative = True ...
https://man.mtool.work/python/3.14/library/doctest.html
test --- Regression tests package for Python — Python 3.14.8 ドキュメント 8251
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » test --- Regression tests package for Python テーマ 自動 ライト ダーク | test --- Regression tests package for Python ... hose name starts with test_ is a testing suite for a specific module or feature. All new tests should be written using the unittest or doctest module. Some older tests are written using a "traditional" testing style that compares output printed to sy ... s.stdout ; this style of test is considered deprecated. 参考 unittest モジュール PyUnit 回帰テストを書く。 doctest モジュール ドキュメンテーション文字列に埋め込まれたテスト。 Writing Unit ... Tests for the test package ¶ unittest モジュールを使ってテストを書く場合、幾つかのガイドラインに従うことが推奨されます。 1つは、テストモジュールの名前を、 t ...
https://man.mtool.work/python/3.14/library/test.html
PREV 1 2 3 4 5 6 7 NEXT