Python Cookbook Data Structures and Algorithms Day 2 정리

Dictionary Problem:  You have two dictionaries and want to find out what they might have in common (same keys, same values, etc.).

Problem:  You have a list of dictionaries and you would like to sort the entries according to one or more of the dictionary values.

    Most_common() methods Problem:  You have… Continue reading Python Cookbook Data Structures and Algorithms Day 2 정리

Python Cookbook Data Structures and Algorithms Day 1 정리

Star Expression Problem: You need to unpack N elements from an iterable, but the iterable may be longer than N elements, causing a “too many values to unpack” exception.

Deque Problem:  You want to keep a limited history of the last few items seen during iteration or during some other kind of processing. ※Deque: … Continue reading Python Cookbook Data Structures and Algorithms Day 1 정리