(user_name)
return None
根据用户名获得用户记录
根据用户名获得用户记录
根据用户名获得用户记录
def get_user(user_name):
    """根据用户名获得用户记录"""
    for user in USERS:
        if user.get("name") == user_name:
            return user
    return None
def get_user ( user_name ) : for user in USERS : if user . get ( "name" ) == user_name : return user return None