pandas.Period.quarter# Period.quarter# 返回 Period 所属的季度。 Examples >>> period = pd.Period('2022-04', 'M') >>> period.quarter 2