← 返回 meta 的题目列表Dictionary Key Iteration
类型:online_judge
Given a dictionary dic, write a function to iterate over the keys of the dictionary in ascending order, and output the values of the keys.
Example:
Input: {3: 'c', 1: 'a', 2: 'b'}
Output: ['a', 'b', 'c']
Provide complete code, with efficiency prioritized.
Example
Input
{3: 'c', 1: 'a', 2: 'b'}