def add_note(self, word_id, note,
                 url='https://api.shanbay.com/bdc/note/'):
        """创建笔记"""
        data = {
            'vocabulary': word_id,
            'note': note
        }
        return self._request(url, method='post', data=data).json()
def add_note ( self , word_id , note , url = 'https://api.shanbay.com/bdc/note/' ) : data = { 'vocabulary' : word_id , 'note' : note } return self . _request ( url , method = 'post' , data = data ) . json ( )
创建笔记