Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
>>> print ( '\n'.join(''.join(x) for x in
|
||||
zip('abc', 'ABC', '123')) )
|
||||
aA1
|
||||
bB2
|
||||
cC3
|
||||
>>>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
>>> print(*map(''.join, zip('abc', 'ABC', '123')), sep='\n')
|
||||
aA1
|
||||
bB2
|
||||
cC3
|
||||
>>>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
from itertools import imap
|
||||
|
||||
def join3(a,b,c):
|
||||
print a+b+c
|
||||
|
||||
imap(join3,'abc','ABC','123')
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
>>> from itertools import zip_longest
|
||||
>>> print ( '\n'.join(''.join(x) for x in zip_longest('abc',
|
||||
'ABCD', '12345', fillvalue='#')) )
|
||||
aA1
|
||||
bB2
|
||||
cC3
|
||||
#D4
|
||||
##5
|
||||
>>>
|
||||
Loading…
Add table
Add a link
Reference in a new issue