içinde itertools içinde imap() bulamıyorum Itertools.imap() ile çözmek istediğim bir sorunum var. Ancak, IDLE kabuğundaki itertools'u alıp itertools.imap() olarak adlandırdıktan sonra IDLE kabuğu, itertools'un öznitelik imapının olmadığını söyledi. Neyin yanlış gidiyor? Python'u 3 kullanıyorsunuzPython
>>> import itertools
>>> dir(itertools)
['__doc__', '__loader__', '__name__', '__package__', '__spec__', '_grouper', '_tee', '_tee_dataobject', 'accumulate', 'chain', 'combinations', 'combinations_with_replacement', 'compress', 'count', 'cycle', 'dropwhile', 'filterfalse', 'groupby', 'islice', 'permutations', 'product', 'repeat', 'starmap', 'takewhile', 'tee', 'zip_longest']
>>> itertools.imap()
Traceback (most recent call last):
File "<pyshell#13>", line 1, in <module>
itertools.imap()
AttributeError: 'module' object has no attribute 'imap'
O [itertools.starmap] (https://docs.python.org/3.6/library/itertools.html#itertools.starmap) pyhton3 içinde bakmak için de ilginç olabilir. –