(self, guid, content, operation='a')
return note.guid
更新指定笔记的内容
        type： a 追加，r 替换
更新指定笔记的内容
        type： a 追加，r 替换
更新指定笔记的内容 type： a 追加，r 替换
def updateNote(self, guid, content, operation='a'):
        """
        更新指定笔记的内容
        type： a 追加，r 替换
        """
        note = self.note_store.getNote(self.auth_token, guid, True,False,False,False)
        noteContent = self.formatNote(content)

        if operation == 'a':
            note.content = note.content.replace("</en-note>", "") + noteContent + "</en-note>"
        elif operation == 'r':
            note.content =  self.template % noteContent
        else:
            raise "未知操作符 " + operation

        self.note_store.updateNote(self.auth_token, note)
        return note.guid
def updateNote ( self , guid , content , operation = 'a' ) : note = self . note_store . getNote ( self . auth_token , guid , True , False , False , False ) noteContent = self . formatNote ( content ) if operation == 'a' : note . content = note . content . replace ( "</en-note>" , "" ) + noteContent + "</en-note>" elif operation == 'r' : note . content = self . template % noteContent else : raise "未知操作符 " + operati n self . note_store . updateNote ( self . auth_token , note ) return note . guid