このコードの問題点:
n = 10
((n/3)).is_integer()
n =任意の数値に設定して整数かどうかを確認できない理由がわかりません。
ご協力いただきありがとうございます!
パイソン2.7.4
エラー:
Traceback (most recent call last):
File "/home/userh/Arbeitsfläche/übung.py", line 2, in <module>
print ((n/3)).is_integer()
AttributeError: 'int' object has no attribute 'is_integer'