?¡ëPNG  IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À? ¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
Ñò [ÐKc@sádZdddgZddkZddklZddkZddkZddk Z ddk Z ei Z hdd6d d 6d d 6dd 6d d6d d6dd6dd6dd6d d 6d d 6dd6dd6dd6Z ei ZeiZd„Zdd d„ƒYZdeifd„ƒYZde fd„ƒYZdddddedd„Zdddddedd„Zddddddedd„Zd„Zddddddedd„Zdddddddeded„ ZdS(!ss Record Arrays ============= Record arrays expose the fields of structured arrays as properties. Most commonly, ndarrays contain elements of a single type, e.g. floats, integers, bools etc. However, it is possible for elements to be combinations of these, such as:: >>> a = np.array([(1, 2.0), (1, 2.0)], dtype=[('x', int), ('y', float)]) >>> a array([(1, 2.0), (1, 2.0)], dtype=[('x', '>> a['x'] array([1, 1]) >>> a['y'] array([ 2., 2.]) Record arrays allow us to access fields as properties:: >>> ar = a.view(np.recarray) >>> ar.x array([1, 1]) >>> ar.y array([ 2., 2.]) trecordtrecarrayt format_parseriÿÿÿÿN(t chararrayt>tbt>> np.format_parser(['f8', 'i4', 'a5'], ['col1', 'col2', 'col3'], ... ['T1', 'T2', 'T3']).dtype dtype([(('T1', 'col1'), '>> np.format_parser(['f8', 'i4', 'a5'], ['col1', 'col2', 'col3'], ... []).dtype dtype([('col1', '>> np.format_parser(['f8', 'i4', 'a5'], [], []).dtype dtype([('f0', '', '='}, optional Byte-order for all fields. aligned : bool, optional Align the fields in memory as the C-compiler would. strides : tuple of ints, optional Buffer (`buf`) is interpreted according to these strides (strides define how many bytes each array element, row, column, etc. occupy in memory). offset : int, optional Start reading buffer (`buf`) from this offset onwards. Returns ------- rec : recarray Empty array of the given shape and type. See Also -------- rec.fromrecords : Construct a record array from data. record : fundamental data-type for `recarray`. format_parser : determine a data-type from formats, names, titles. Notes ----- This constructor can be compared to ``empty``: it creates a new record array but does not fill it with data. To create a reccord array from data, use one of the following methods: 1. Create a standard ndarray and convert it to a record array, using ``arr.view(np.recarray)`` 2. Use the `buf` keyword. 3. Use `np.rec.fromrecords`. Examples -------- Create an array with two fields, ``x`` and ``y``: >>> x = np.array([(1.0, 2), (3.0, 4)], dtype=[('x', float), ('y', int)]) >>> x array([(1.0, 2), (3.0, 4)], dtype=[('x', '>> x['x'] array([ 1., 3.]) View the array as a record array: >>> x = x.view(np.recarray) >>> x.x array([ 1., 3.]) >>> x.y array([2, 4]) Create a new, empty record array: >>> np.recarray((2,), ... dtype=[('x', int), ('y', float), ('z', int)]) #doctest: +SKIP rec.array([(-1073741821, 1.2249118382103472e-301, 24547520), (3471280, 1.2134086255804012e-316, 0)], dtype=[('x', '>> x1=np.array([1,2,3,4]) >>> x2=np.array(['a','dd','xyz','12']) >>> x3=np.array([1.1,2,3,4]) >>> r = np.core.records.fromarrays([x1,x2,x3],names='a,b,c') >>> print r[1] (2, 'dd', 2.0) >>> x1[1]=34 >>> r.a array([1, 2, 3, 4]) iR$s*item in the array list must be an ndarray.R%iÿÿÿÿs>mismatch between the number of fields and the number of arrayss array-shape mismatch in array %dN(R+tasarrayR'RkR)R|RhR(t_typestrRR4R~ROtflexibletitemsizeRRR<RRt enumerateRR(t arrayListRRkRRR R!R"R1txRZRCR<tparsedtd0tnntkt testshapet_arrayR((s8/usr/lib64/python2.6/site-packages/numpy/core/records.pyt fromarraysòsN*            cCst|dƒ}|d jo‘|d jo„ti|dtƒ} g} t|ƒD]&} | ti| d| fiƒƒqP~ } t| d|d|d|d|d|d |ƒS|d j otit |fƒ} nt |||||ƒi } yti|d| ƒ}Wn¾t j o²|d jp |djot|ƒ}nt |ttfƒo |f}nt|ƒd jo td ‚nt|| ƒ}x+t|iƒD]}t||ƒ||>> r=np.core.records.fromrecords([(456,'dbe',1.2),(2,'de',1.3)], ... names='col1,col2,col3') >>> print r[0] (456, 'dbe', 1.2) >>> r.col1 array([456, 2]) >>> r.col2 chararray(['dbe', 'de'], dtype='|S3') >>> import cPickle >>> print cPickle.loads(cPickle.dumps(r)) [(456, 'dbe', 1.2) (2, 'de', 1.3)] iR.RRkRR R!R"isCan only deal with 1-d array.N(RR'R+tarrayRmtxrangettolistRRRRRRnR)R|tlongR(RtsizettupleRkRT(trecListRRkRRR R!R"tnfieldsRZR1RtarrlistRCtretvalRŒRŠRY((s8/usr/lib64/python2.6/site-packages/numpy/core/records.pyt fromrecords7s6@    ic CsÉ|djo|djo td‚n|dj oti|ƒ} nt|||||ƒi} | i} |djp|djp |djot|ƒ|| }nt|| d|d|ƒ} | S(sM create a (read-only) record array from binary data contained in a stringsMust have dtype= or formats=iiÿÿÿÿRlRfN( R'R(R+RRRRƒRR( t datastringRRkRfRRR R!R"RCRƒRŒ((s8/usr/lib64/python2.6/site-packages/numpy/core/records.pyt fromstringws   'cCsfy|iƒ}Wn-tj o!tii|iƒ|iƒSXti|ƒ}|i|iƒ}|S(N( tfilenoRRtostpathtgetsizeR`ttelltfstattst_size(tfdtfntstR’((s8/usr/lib64/python2.6/site-packages/numpy/core/records.pytget_remaining_sizeŒsc CsÚ|djp |djo d}n$t|ttfƒo |f}nd} t|tƒod} t|dƒ}n|djo|i|dƒnt|ƒ} |dj oti |ƒ} nt |||||ƒi } | i } ti |ƒiƒ} | | }|djoIt|ƒ}| | ||idƒ>> from tempfile import TemporaryFile >>> a = np.empty(10,dtype='f8,i4,a5') >>> a[5] = (0.5,10,'abcde') >>> >>> fd=TemporaryFile() >>> a = a.newbyteorder('<') >>> a.tofile(fd) >>> >>> fd.seek(0) >>> r=np.core.records.fromfile(fd, formats='f8,i4,a5', shape=10, ... byteorder='<') >>> print r[5] (0.5, 10, 'abcde') >>> r.shape (10,) iiÿÿÿÿitrbs:Not enough bytes left in file for specified shape and types%Didn't read as many bytes as expectedN(iÿÿÿÿ(R'R)R|R‘RJtopentseekR¥R+RRRRƒRŽtprodRtindexR“R(RtreadintotdatatIOErrortclose(R¢RRkRfRRR R!R"R`R’RCRƒt shapeprodt shapesizetnbytesRŒt nbytesread((s8/usr/lib64/python2.6/site-packages/numpy/core/records.pytfromfile•sB              c  Cs¨t|tdƒttfƒo*|djo|djotdƒ‚nh} |dj oti|ƒ}nV|dj ot||||| ƒi }n*h|d6|d6|d6|d6| d6} |djo=|djotdƒ‚nt ||d|d |d |ƒSt|tƒot ||d |d || St|t t fƒoQt|d t t fƒot|d |d || St|d |d || Snt|t ƒoR|dj o#|i|jo|i|ƒ} n|} | o| iƒ} n| St|tƒot|d |d |d |ƒSt|tƒo™|dj o#|i|jo|i|ƒ} n|} | o| iƒ} n| it ƒ} t| iitiƒotit| ifƒ| _n| St|ddƒ}|djpt|tƒ otdƒ‚nti|ƒ}|dj o#|i|jo|i|ƒ}n|it ƒ} t| iitiƒotit| ifƒ| _n| SdS(s=Construct a record array from a wide-variety of objects. sIMust define formats (or dtype) if object is None, string, or an open fileRRR R!R"s"Must define a shape if obj is NoneRlRfRgRkiRt__array_interface__sUnknown input typeN(R)R4R'RJtfileR(R+RRRRRšRR“R˜RRTtcopyR³RhR~RORPRR\tdictRŽ(RZRRkRfRgRRR R!R"R¶tkwdstnewRYt interface((s8/usr/lib64/python2.6/site-packages/numpy/core/records.pyRŽÙsj,         ((RFt__all__tnumericR+t defchararrayRt numerictypesROR5RœRqRhRAttypeDicttnumfmtRRRRPRRR'RGRR˜RšR¥R³tTrueRŽ(((s8/usr/lib64/python2.6/site-packages/numpy/core/records.pyt$sN           ƒFØ D ?  C