TelenkovDmitry 2 달 전
부모
커밋
56ef0539fe
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      courses/python_func/filter.py

+ 15 - 0
courses/python_func/filter.py

@@ -0,0 +1,15 @@
+
+
+def test_1():
+    a = ['departure', 'execute', 'service', 'extreme', 'suppress']
+    print(list(filter(lambda x: x[0] == x[-1], a)))
+
+
+def main():
+    pass
+
+
+if __name__ == '__main__':
+    # main()
+    a = [1, 2, 3, 4, 5]
+    print(list(filter(None, a)))