📌  相关文章
📜  如何在 python 列表中选择最短的项目 - Python 代码示例

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

代码示例1
strings = ["some", "example", "words", "that", "i", "am", "fond", "of"]

print min(strings, key=len) # prints "i"