Skip to content

根据上下文,__init__中属性名称是 self._first_name 而不是 self.first_name #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2019

Conversation

zhangjieke
Copy link
Contributor

def init(self, first_name):
self._first_name = first_name

def __init__(self, first_name):
            self._first_name = first_name
@yidao620c yidao620c merged commit ded49dd into yidao620c:master Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants