📌  相关文章
📜  python 对数组的每个元素应用一个函数 - Python 代码示例

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

代码示例1
>>> mylis = ['this is test', 'another test']
>>> [item.upper() for item in mylis]
['THIS IS TEST', 'ANOTHER TEST']