'self' seems to be hogging one of my arguments
问题 I am trying to learn object orientated programming in python 3. I am making a variation of a notebook program that I have in a book but instead of adding notes to a notebook I am trying to add days to a timesheet. In the original tutorial, this is in the main program: def add_note(self): memo = input("Enter a memo: ") self.notebook.new_note(memo) print("Your note has been added") and this is in the class module (notebook): def new_note(self, memo, tags = ''): '''create a new note and add it