per page, with , order by , clip by
Results of 1 - 10 of about 10 for quantity (0.011 sec.)
dataclasses --- データクラス — Python 3.14.8 ドキュメント 12550
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L ... lass @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 = quantity_on_hand このメソ ... hat 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 default), an __eq__() ...
https://man.mtool.work/python/3.14/library/dataclasses.html
dataclasses --- データクラス — Python 3.14.8 ドキュメント 12192
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L ... lass @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 = quantity_on_hand このメソ ... hat 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 default), an __eq__() ...
https://man.mtool.work/python/3.14/library/dataclasses.html
デスクリプタ ガイド — Python 3.14.8 ドキュメント 8831
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を ... t : name = String ( minsize = 3 , maxsize = 10 , predicate = str . isupper ) kind = OneOf ( 'wood' , 'metal' , 'plastic' ) quantity = Number ( minvalue = 0 ) def __init__ ( self , name , kind , quantity ): self . name = name self . kind = kind self . qua ... ntity = quantity これらのデスクリプタは、不正インスタンスが作成されるのを防ぎます。 >>> Component ( 'Widget' , 'metal' , 5 ) # Blocked: 'Wi ...
https://man.mtool.work/python/3.14/howto/descriptor.html
デスクリプタ ガイド — Python 3.14.8 ドキュメント 8831
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を ... t : name = String ( minsize = 3 , maxsize = 10 , predicate = str . isupper ) kind = OneOf ( 'wood' , 'metal' , 'plastic' ) quantity = Number ( minvalue = 0 ) def __init__ ( self , name , kind , quantity ): self . name = name self . kind = kind self . qua ... ntity = quantity これらのデスクリプタは、不正インスタンスが作成されるのを防ぎます。 >>> Component ( 'Widget' , 'metal' , 5 ) # Blocked: 'Wi ...
https://man.mtool.work/python/3.14/howto/descriptor.html
re --- 正規表現操作 — Python 3.14.8 ドキュメント 8295
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは ... ( 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 tokenize ( statements ): print ( toke ... ナイザは以下の出力を作成します: Token ( type = 'IF' , value = 'IF' , line = 2 , column = 4 ) Token ( type = 'ID' , value = 'quantity' , line = 2 , column = 7 ) Token ( type = 'THEN' , value = 'THEN' , line = 2 , column = 16 ) Token ( type = 'ID' , value = ... ce' , line = 3 , column = 25 ) Token ( type = 'OP' , value = '*' , line = 3 , column = 31 ) Token ( type = 'ID' , value = 'quantity' , line = 3 , column = 33 ) Token ( type = 'END' , value = ';' , line = 3 , column = 41 ) Token ( type = 'ID' , value = 't ...
https://man.mtool.work/python/3.14/library/re.html
re --- 正規表現操作 — Python 3.14.8 ドキュメント 8295
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは ... ( 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 tokenize ( statements ): print ( toke ... ナイザは以下の出力を作成します: Token ( type = 'IF' , value = 'IF' , line = 2 , column = 4 ) Token ( type = 'ID' , value = 'quantity' , line = 2 , column = 7 ) Token ( type = 'THEN' , value = 'THEN' , line = 2 , column = 16 ) Token ( type = 'ID' , value = ... ce' , line = 3 , column = 25 ) Token ( type = 'OP' , value = '*' , line = 3 , column = 31 ) Token ( type = 'ID' , value = 'quantity' , line = 3 , column = 33 ) Token ( type = 'END' , value = ';' , line = 3 , column = 41 ) Token ( type = 'ID' , value = 't ...
https://man.mtool.work/python/3.14/library/re.html
math --- 数学関数 — Python 3.14.8 ドキュメント 7580
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math ... traction in exp(x) - 1 can result in a significant loss of precision ; the expm1() function provides a way to compute this quantity to full precision: >>> from math import exp , expm1 >>> exp ( 1e-5 ) - 1 # gives result accurate to 11 places 1.0000050000 ...
https://man.mtool.work/python/3.14/library/math.html
What's New In Python 3.2 — Python 3.14.8 ドキュメント 7580
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.2 テーマ 自動 ライト ダーク | What's New In Python 3.2 ¶ 著者 : Raymond Hettinger This article explains the new fea ... _ ( self , key ): ... return dict . __getitem__ ( self , key . lower ()) ... >>> lcd = LowerCasedDict ( part = 'widgets' , quantity = 10 ) >>> 'There are {QUANTITY} {Part} in stock' . format_map ( lcd ) 'There are 10 widgets in stock' >>> class Placehold ...
https://man.mtool.work/python/3.14/whatsnew/3.2.html
math --- 数学関数 — Python 3.14.8 ドキュメント 7580
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math ... traction in exp(x) - 1 can result in a significant loss of precision ; the expm1() function provides a way to compute this quantity to full precision: >>> from math import exp , expm1 >>> exp ( 1e-5 ) - 1 # gives result accurate to 11 places 1.0000050000 ...
https://man.mtool.work/python/3.14/library/math.html
What's New In Python 3.2 — Python 3.14.8 ドキュメント 7580
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.2 テーマ 自動 ライト ダーク | What's New In Python 3.2 ¶ 著者 : Raymond Hettinger This article explains the new fea ... _ ( self , key ): ... return dict . __getitem__ ( self , key . lower ()) ... >>> lcd = LowerCasedDict ( part = 'widgets' , quantity = 10 ) >>> 'There are {QUANTITY} {Part} in stock' . format_map ( lcd ) 'There are 10 widgets in stock' >>> class Placehold ...
https://man.mtool.work/python/3.14/whatsnew/3.2.html
PREV 1 NEXT