参考答案: import pandas as pd d = {'a': 1, 'b': 2, 'c': 3, 'd': 4} ser = pd.Series(data=d, index=['a', 'b']) ser ''' a 1 b 2 dtype: int64 '''