python寻找数组最小值
时间: 2023-10-09 20:15:15 浏览: 99
在Python中,可以使用以下代码来找到数组的最小值:
```python
lst = [3, 6, 1, 8, 1, 9, 8, 10, 21]
min_value = lst<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [寻找数组中的最大值和最小值 (python)](https://blog.csdn.net/qq_43211230/article/details/124044747)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [【python】 求数组最小值,最大值,最小偶数,最大奇数](https://blog.csdn.net/wanshuai12138/article/details/121385684)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文