(src, allow_char)
return result
根据具体的规则获取具体的字符
根据具体的规则获取具体的字符
根据具体的规则获取具体的字符
def take(src, allow_char):
    """根据具体的规则获取具体的字符"""
    result = ''
    while src.current() in allow_char:
        result += src.pop()
    return result
def take ( src , allow_char ) : result = '' while src . current ( ) in allow_char : result += src . pop ( ) return result