<qiyuangong>771_Jewels_and_Stones_1.py
def numJewelsInStones( J, S):
    if len(J) == 0 or len(S) == 0:
        return 0
    j_set = set(J)
    ans = 0
    for c in S:
        if c in j_set:
            ans += 1
    return ans
def sample_funcname ( var_0 , var_1 ) :
    if len ( var_0 ) == 0 or len ( var_1 ) == 0 :
        return 0
    var_5 = set ( var_0 )
    var_6 = 0
    for var_7 in var_1 :
        if var_7 in var_5 :
            var_6 += 1
    return var_6
