Python入門トップページ
クラスの全属性値を取り出すことも可能です.
コピー from issue import Issue issue1 = Issue('2nd Issue') issue1.description = 'new problem' issue1.memo = 'メモ' for key in issue1.__dict__.values(): print(key)
from issue import Issue issue1 = Issue('2nd Issue') issue1.description = 'new problem' issue1.memo = 'メモ' for key in issue1.__dict__.values(): print(key)
2nd Issue new problem 0 False メモ
目次に戻る