Results of 1 - 10 of about 23 for price (0.007 sec.)
- fractions --- 有理数 — Python 3.14.8 ドキュメント 13489
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » fractions --- 有理数 テーマ 自動 ライト ダーク | fractions --- 有理数 ¶ ソースコード: Lib/fractions.py The f
...n ( '1234567.855' ), '_.2f' ) '1_234_567.86' >>> f " { Fraction ( 355 , 113 ) : *>20.6e } " '********3.141593e+00' >>> old_price , new_price = 499 , 672 >>> " {:.2%} price increase" . format ( Fraction ( new_price , old_price ) - 1 ) '34.67% price inc...inator format float fractions numbers numerator integer instance instances ratio decimal Decimal number method import math price limit constructor インスタンス self 有理数 type formatting 前のトピックへ decimal --- 10進固定小数点と浮動小数点の演算 次の... - https://man.mtool.work/python/3.14/library/fractions.html
- fractions --- 有理数 — Python 3.14.8 ドキュメント 12534
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » fractions --- 有理数 テーマ 自動 ライト ダーク | fractions --- 有理数 ¶ ソースコード: Lib/fractions.py The f
...n ( '1234567.855' ), '_.2f' ) '1_234_567.86' >>> f " { Fraction ( 355 , 113 ) : *>20.6e } " '********3.141593e+00' >>> old_price , new_price = 499 , 672 >>> " {:.2%} price increase" . format ( Fraction ( new_price , old_price ) - 1 ) '34.67% price inc... - https://man.mtool.work/python/3.14/library/fractions.html
- dataclasses --- データクラス — Python 3.14.8 ドキュメント 10640
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L
...s 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 = quanti...s. 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 default... - https://man.mtool.work/python/3.14/library/dataclasses.html
- dataclasses --- データクラス — Python 3.14.8 ドキュメント 10070
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L
...s 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 = quanti...s. 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 default... - https://man.mtool.work/python/3.14/library/dataclasses.html
- 3. 形式ばらない Python の紹介 — Python 3.14.8 ドキュメント 8562
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 3. 形式ばらない Python の紹介 テーマ 自動 ライト ダーク | 3. 形式ばらない Python の紹介 ¶ 以下のサンプルでは、入力と出力はプロンプト ( >>
...ると、Python を電卓として使うときに、計算を連続して行う作業が多少楽になります。以下に例を示します: >>> tax = 12.5 / 100 >>> price = 100.50 >>> price * tax 12.5625 >>> price + _ 113.0625 >>> round ( _ , 2 ) 113.06 この変数には読取りだけを行い、明示的な代... - https://man.mtool.work/python/3.14/tutorial/introduction.html
- 3. 形式ばらない Python の紹介 — Python 3.14.8 ドキュメント 8562
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 3. 形式ばらない Python の紹介 テーマ 自動 ライト ダーク | 3. 形式ばらない Python の紹介 ¶ 以下のサンプルでは、入力と出力はプロンプト ( >>
...ると、Python を電卓として使うときに、計算を連続して行う作業が多少楽になります。以下に例を示します: >>> tax = 12.5 / 100 >>> price = 100.50 >>> price * tax 12.5625 >>> price + _ 113.0625 >>> round ( _ , 2 ) 113.06 この変数には読取りだけを行い、明示的な代... - https://man.mtool.work/python/3.14/tutorial/introduction.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 8177
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...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 ( token ) このトークナイザは以下の...al' , line = 3 , column = 17 ) Token ( type = 'OP' , value = '+' , line = 3 , column = 23 ) Token ( type = 'ID' , value = 'price' , line = 3 , column = 25 ) Token ( type = 'OP' , value = '*' , line = 3 , column = 31 ) Token ( type = 'ID' , value = 'qu..., line = 4 , column = 8 ) Token ( type = 'ASSIGN' , value = ':=' , line = 4 , column = 12 ) Token ( type = 'ID' , value = 'price' , line = 4 , column = 15 ) Token ( type = 'OP' , value = '*' , line = 4 , column = 21 ) Token ( type = 'NUMBER' , value =... - https://man.mtool.work/python/3.14/library/re.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 8177
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...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 ( token ) このトークナイザは以下の...al' , line = 3 , column = 17 ) Token ( type = 'OP' , value = '+' , line = 3 , column = 23 ) Token ( type = 'ID' , value = 'price' , line = 3 , column = 25 ) Token ( type = 'OP' , value = '*' , line = 3 , column = 31 ) Token ( type = 'ID' , value = 'qu..., line = 4 , column = 8 ) Token ( type = 'ASSIGN' , value = ':=' , line = 4 , column = 12 ) Token ( type = 'ID' , value = 'price' , line = 4 , column = 15 ) Token ( type = 'OP' , value = '*' , line = 4 , column = 21 ) Token ( type = 'NUMBER' , value =... - https://man.mtool.work/python/3.14/library/re.html
- xml.dom.pulldom --- 部分的な DOM ツリー構築のサポート — Python 3.14.8 ドキュメ... 7993
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 構造化マークアップツール » xml.dom.pulldom --- 部分的な DOM ツリー構築のサポート テーマ 自動 ライト ダーク | xml.dom.pulldom --- 部
...r event , node in doc : if event == pulldom . START_ELEMENT and node . tagName == 'item' : if int ( node . getAttribute ( 'price' )) > 50 : doc . expandNode ( node ) print ( node . toxml ()) event is one of the following constants, and node is the nod... - https://man.mtool.work/python/3.14/library/xml.dom.pulldom.html
- xml.dom.pulldom --- 部分的な DOM ツリー構築のサポート — Python 3.14.8 ドキュメ... 7993
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 構造化マークアップツール » xml.dom.pulldom --- 部分的な DOM ツリー構築のサポート テーマ 自動 ライト ダーク | xml.dom.pulldom --- 部
...r event , node in doc : if event == pulldom . START_ELEMENT and node . tagName == 'item' : if int ( node . getAttribute ( 'price' )) > 50 : doc . expandNode ( node ) print ( node . toxml ()) event is one of the following constants, and node is the nod... - https://man.mtool.work/python/3.14/library/xml.dom.pulldom.html