可以通过以下步骤实现:
date_list = [
{'month': 'January', 'year': 2022},
{'month': 'February', 'year': 2022},
{'month': 'March', 'year': 2022},
{'month': 'April', 'year': 2022},
{'month': 'May', 'year': 2022},
{'month': 'June', 'year': 2022},
{'month': 'July', 'year': 2022},
{'month': 'August', 'year': 2022},
{'month': 'September', 'year': 2022},
{'month': 'October', 'year': 2022},
{'month': 'November', 'year': 2022},
{'month': 'December', 'year': 2022}
]
for date in date_list:
month = date['month']
year = date['year']
print(month, year)
输出结果将会是:
January 2022
February 2022
March 2022
April 2022
May 2022
June 2022
July 2022
August 2022
September 2022
October 2022
November 2022
December 2022
以下是腾讯云相关产品的介绍链接地址,供参考:
请注意,以上仅为示例链接,具体的产品选择应根据实际需求进行评估和决策。
领取专属 10元无门槛券
手把手带您无忧上云