文件操作 - interfaces.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/twisted/internet/iocpreactor/interfaces.py
编辑文件内容
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Interfaces for iocpreactor """ from zope.interface import Interface class IReadHandle(Interface): def readFromHandle(bufflist, evt): """ Read into the given buffers from this handle. @param bufflist: the buffers to read into @type bufflist: list of objects implementing the read/write buffer protocol @param evt: an IOCP Event object @return: tuple (return code, number of bytes read) """ class IWriteHandle(Interface): def writeToHandle(buff, evt): """ Write the given buffer to this handle. @param buff: the buffer to write @type buff: any object implementing the buffer protocol @param evt: an IOCP Event object @return: tuple (return code, number of bytes written) """ class IReadWriteHandle(IReadHandle, IWriteHandle): pass
修改文件时间
将文件时间修改为当前时间的前一年
删除文件