Chu*_*bas 6

output = array.values_at(*indexes)
Run Code Online (Sandbox Code Playgroud)

请注意,您必须splat indices参数,values_at接受整数或范围列表作为参数