📌  相关文章
📜  查找数组中的最小和最大元素 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:07.060000             🧑  作者: Mango

代码示例2
#In python
#List
myListName = ["value", 3, 3.1, "a", True]
minimumValue = min(myListName)
maximumValue = max(myListName)

#Numpy array
import numpy as np
myListName = ["value", 3, 3.1, "a", True]
myArrayName = np.array(myListName)
minimumValue = min(myArrayName)
maximumValue = max(myArrayName)