📅  最后修改于: 2022-03-11 14:46:01.518000             🧑  作者: Mango
months_in_year = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
date = '2021-11-21 11:22:03'
month = date.dt.month
print(month)
#Output
11
month_name = months_in_year [month - 1]
print(month_name)
#Output
November