Open DanaShaw opened 2 years ago
https://dana5haw.com/posts/ZH-CN/Python_Comprehension.html
推导式列表推导式1[i for i in range(3)] 等价于 12for i in range(3) print(i) 运行结果:
https://dana5haw.com/posts/ZH-CN/Python_Comprehension.html
推导式列表推导式1[i for i in range(3)] 等价于 12for i in range(3) print(i) 运行结果: