diff --git a/code/chapter11/ch11.3.4.py b/code/chapter11/ch11.3.4.py index 131dc3b..43ceb5d 100644 --- a/code/chapter11/ch11.3.4.py +++ b/code/chapter11/ch11.3.4.py @@ -19,9 +19,9 @@ def __init__(self, owner, amount): print('利率:{0}'.format(Account.interest_rate)) print('Account利率:{0}'.format(Account.interest_rate)) -print('ac1利率:{0}'.format(account.interest_rate1)) +print('ac1利率:{0}'.format(account.interest_rate)) print('ac1实例所有变量:{0}'.format(account.__dict__)) account.interest_rate = 0.01 account.interest_rate2 = 0.01 -print('ac1实例所有变量:{0}'.format(account.__dict__)) \ No newline at end of file +print('ac1实例所有变量:{0}'.format(account.__dict__))