Python入門トップページ
クラスの全属性は次のようにして取り出すことができます.
コピー from issue import Issue issue1 = Issue('2nd Issue') issue1.description = 'new problem' issue1.memo = 'メモ' for key in issue1.__dict__.keys(): print(key)
from issue import Issue issue1 = Issue('2nd Issue') issue1.description = 'new problem' issue1.memo = 'メモ' for key in issue1.__dict__.keys(): print(key)
subject description priority closed memo
目次に戻る