文件操作 - process_twisted.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/twisted/test/__pycache__/process_twisted.cpython-310.pyc
编辑文件内容
o �b� � @ s� d Z ddlZddlZej�ejd ��ejd �Zedkr1ej� dej�ejd �ded � � ej� dej � ddlmZ ddl mZ ddlmZ e�ej� dd l mZmZmZ eej�G d d� dej��Ze�e� � e�� dS )z6A process that reads from stdin and out using Twisted.� N�Twisted���� )�implementer)� interfaces)�log)�protocol�reactor�stdioc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d � ZdS )�Echoc C � t d� d S )Nzconnection made��print��self� r �>/usr/lib/python3/dist-packages/twisted/test/process_twisted.py�connectionMade � zEcho.connectionMadec C s | j �|� d S )N)� transport�write)r �datar r r �dataReceived! s zEcho.dataReceivedc C s t d� | j�� d S )N�readConnectionLost)r r �loseConnectionr r r r r $ s zEcho.readConnectionLostc C r )N�writeConnectionLostr r r r r r ( r zEcho.writeConnectionLostc C s t d|� t�� d S )N�connectionLost)r r �stop)r �reasonr r r r + s zEcho.connectionLostN)�__name__� __module__�__qualname__r r r r r r r r r r s r )�__doc__�os�sys�path�abspath�argv�find�sep�pos�insert�curdir�zope.interfacer �twisted.internetr �twisted.pythonr �startLogging�stderrr r r �IHalfCloseableProtocol�Protocolr � StandardIO�runr r r r �<module> s (
修改文件时间
将文件时间修改为当前时间的前一年
删除文件