Server IP : 184.154.167.98 / Your IP : 18.225.98.190 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python2.7/Demo/classes/ |
Upload File : |
� ��^c @ sN d Z d � Z d � Z d d d � � YZ d � Z e d k rJ e � n d S( s Example of a generator: re-implement the built-in range function without actually constructing the list of values. OldStyleRange is coded in the way required to work in a 'for' loop before iterators were introduced into the language; using __getitem__ and __len__ . c C s� y� t | � d k r, d t | d � d f St | � d k r_ t | d � t | d � d f St | � d k r� | d d k r� t d � � n t d � | D� � St d t | � � � Wn t k r� t d � � n Xd S( sg Take list of arguments and extract/create proper start, stop, and step values and return in a tuplei i i i s step argument must not be zeroc s s | ] } t | � Vq d S( N( t int( t .0t x( ( s* /usr/lib64/python2.7/Demo/classes/Range.pys <genexpr> s s$ range() accepts 1-3 arguments, givensA range() arguments must be numbers or strings representing numbersN( t lenR t ValueErrort tuplet TypeError( t arglist( ( s* /usr/lib64/python2.7/Demo/classes/Range.pyt handleargs s ! c g sA t | � \ } } } | } x | | k r<