文档首页/Python SDK/ORM/Roleis_exist()Near Deprecation 此操作检查当前角色是否存在。 请求语法 pythonAsk AIis_exist() 参数: 无/A 返回类型: bool 返回值: 一个布尔值,表示当前角色是否存在 异常: None 示例 pythonAsk AIfrom pymilvus import Role, utility# Get a rolerole = Role(name="test")# Check whether the role existsrole.is_exist() 相关操作 以下操作与 is_exist() 相关: add_user() get_users() list_grant() list_grants() remove_user()