1 2 3 4 5 6 7 8 9 10 11
| s = '[email protected]!{(]zyu&8jb'; print "\n".join(map(lambda x: "%s -> %d" % (x, s.count(x)), s))
s = '[email protected]!{(]zyu&8jb' f = lambda x: "%s -> %d" % (x, s.count(x)); e = map(f, s) print "\n".join(e)
print [i for i in s]
|