エラーメッセージでぃっく

  • プライバシーポリシー
  1. Home
  2. 数値

数値

AttributeError: ‘str’ object has no attribute ‘as_integer_ratio’

Posted on 2023年4月3日2023年4月3日 by 管理人

【不具合内容】 Pythonでas_integer_ratio()メソッドを使った時に発生 【原因】 as_integer_ratio()は数値専用のメソッドであるため。 【解決方法】 文字列に対してas_integer…

もっとみる

もっとみる

  Posted in Python Tagged python, メソッド, 数値, 文字列    Leave a comment

ValueError: invalid literal for int() with base 10: ‘Relaxes’

Posted on 2023年4月2日2023年4月2日 by 管理人

【不具合内容】 Pythonで文字列を数値に変換する際に発生 【原因】 数字以外の文字列は数値に変換できない 【解決方法】 数値変換する箇所に数字以外の文字列を入れないようにする。

もっとみる

もっとみる

  Posted in Python Tagged python, 変換, 数値, 文字列    Leave a comment

最近の投稿

  • フォルダシールドで保護されたファイルにアクセスしようとしたプログラムをブロックしました。
  • IndexError: list assignment index out of range
  • IndexError: list index out of range
  • SyntaxError: incomplete input
  • invalid literal for int() with base 10: ”

© 2007- Relaxes