热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

NumPy 面试题与答案

问题 26. How to perform element-wise addition of two NumPy arrays?

import numpy as npnarr1 = np.array([1, 2, 3])narr2 = np.array([4, 5, 6])nresult = arr1 + arr2

这有帮助吗? 添加评论 查看评论
 

问题 27. Explain the purpose of 'np.concatenate()' in NumPy.

'np.concatenate()' joins a sequence of arrays along an existing axis.

这有帮助吗? 添加评论 查看评论
 

问题 28. How to perform matrix multiplication in NumPy?

You can use 'np.matmul()' or the '@' operator. For example, 'result = np.matmul(arr1, arr2)' or 'result = arr1 @ arr2'.

这有帮助吗? 添加评论 查看评论
 

问题 29. What is the purpose of 'np.percentile()' in NumPy?

'np.percentile()' calculates the nth percentile of a dataset.

这有帮助吗? 添加评论 查看评论
 

问题 30. Explain the use of 'np.unique()' in NumPy.

'np.unique()' returns the unique elements of an array.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。