import itertools
a = 'tomorrow'
b =map(int, list('11001011'))
c = itertools.compress(a, b)
print(''.join(c)) # torow
沒有留言:
張貼留言