관리-도구
편집 파일: recipes.cpython-311.pyc
� �܋f�k � � � d Z ddlZddlZddlmZ ddlmZ ddlmZm Z ddl mZmZm Z mZmZmZmZmZmZmZmZmZ ddlmZmZmZ ddlmZ g d �Z e� � Z e d �� � ee d �� � Z!n # e"$ r e Z!Y nw xY w e#edd � � � Z$d� Z%dGd�Z&d� Z'dHd�Z(dHd�Z)d� Z*e+fd�Z,d� Z-e-Z.d� Z/d� Z0d� Z1dHd�Z2d� Z3 ddl m4Z5 d� Z4e3j e4_ n # e6$ r e3Z4Y nw xY w G d� de7� � Z8d� Z9d � Z:dId"�Z;d#� Z<d$� Z=d%� Z>dHd&�Z?dHd'�Z@dHd(�ZAdJd)�ZBd*d+�d,�ZCdHd-�ZDd.� ZEd/� ZFd0� ZGd1� ZHd2� ZId3� ZJd4� ZKd5� ZLd6� ZMd7� ZNdKd8�ZOd9� ZPd:d�d;�ZQed<k r dd=l mRZS d:d�d>�ZRneQZReQj eR_ d?� ZTd@� ZUdA� ZVdB� ZWdC� ZXdD� ZYdE� ZZdF� Z[dS )La Imported from the recipes section of the itertools documentation. All functions taken from the recipes section of the itertools library docs [1]_. Some backward-compatible usability improvements have been made. .. [1] http://docs.python.org/library/itertools.html#recipes � N)�deque)�Sized)�partial�reduce)�chain�combinations�compress�count�cycle�groupby�islice�product�repeat�starmap�tee�zip_longest)� randrange�sample�choice)� hexversion)-� all_equal�batched�before_and_after�consume�convolve� dotproduct� first_true�factor�flatten�grouper�iter_except� iter_index�matmul�ncycles�nth�nth_combination�padnone�pad_none�pairwise� partition�polynomial_eval�polynomial_from_roots�polynomial_derivative�powerset�prepend�quantify�reshape�#random_combination_with_replacement�random_combination�random_permutation�random_product� repeatfunc� roundrobin�sieve�sliding_window� subslices�sum_of_squares�tabulate�tail�take�totient� transpose� triplewise�unique_everseen�unique_justseenT��strict�sumprodc �"