文件操作 - is_empty.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__/is_empty.cpython-310.pyc
编辑文件内容
o (]^4 � @ sj d dl mZmZ d dlmZ d dlmZ d dlmZ dZ dZ dZG dd � d ee �Zd ee fdd�Z d S )� )�Optional�Sized)�BaseMatcher)�Description)�Matcherz Chris RosezCopyright 2012 hamcrest.orgzBSD, see License.txtc @ s: e Zd Zd dedee defdd�Zdeddfdd �ZdS )�IsEmptyN�item�mismatch_description�returnc C s^ zt |�dkr W dS |r|�dt |� � W dS W dS ty. |r+|�d� Y dS Y dS w )Nr Tzhas %d item(s)zdoes not support lengthF)�len�append_text� TypeError)�selfr r � r �F/usr/lib/python3/dist-packages/hamcrest/library/collection/is_empty.py�matches s ����zIsEmpty.matches�descriptionc C s |� d� d S )Nzan empty collection)r )r r r r r �describe_to s zIsEmpty.describe_to)N) �__name__� __module__�__qualname__r r r �boolr r r r r r r s r r c C s t � S )zy This matcher matches any collection-like object that responds to the __len__ method, and has a length of 0. )r r r r r �empty s r N)�typingr r �hamcrest.core.base_matcherr �hamcrest.core.descriptionr �hamcrest.core.matcherr � __author__� __copyright__�__license__r r r r r r �<module> s
修改文件时间
将文件时间修改为当前时间的前一年
删除文件