摘要: list comprehension: my_list = [num*num for num in range(1,11)] print(my_list) if使用 my_list = [num for num in range(1,11) if num > 5] print(my_list) if 阅读全文
posted @ 2020-05-16 23:38 profesor 阅读(189) 评论(0) 推荐(0) 编辑