Python 3.6.1 (default, Sep 7 2017, 16:36:03)
[GCC 6.3.0 20170406] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> s1 ='我死了'
>>> s2 ='我挂了'
>>> len([a for a, b in zip(s1, s2) if a == b])
2
>>> s1 =u'我死了'
>>> s2 =u'我挂了'
>>> print ''.join(list(set(s1) & set(s2)))
我了
>>>
Count = len( set(s1) & set(s2) )