摘要: import time print(time.strftime('%Y/%m/%d %H:%M:%S', time.localtime())) # 2022/06/27 20:55:56 阅读全文
posted @ 2022-06-27 20:58 xuecl 阅读(13) 评论(0) 推荐(0) 编辑
摘要: lists = [1, 2, 3, 4, 5, 6, 7] print(list(filter(lambda x: x > 4, lists))) # [5, 6, 7] print(list(map(lambda x: x > 4, lists))) # [False, False, False, 阅读全文
posted @ 2022-06-27 20:42 xuecl 阅读(48) 评论(0) 推荐(0) 编辑