📜  python 乘以列表 bt 数字 - Python 代码示例

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

代码示例1
my_list = [1, 2, 3, 4, 5]
my_new_list = [i * 5 for i in my_list]

>>> print(my_new_list)
[5, 10, 15, 20, 25]