我需要编写一个方法,以整数形式返回月中的某天.例如,如果它是2011年2月8日,我希望有这样的方法:
>>> day = get_day_of_month()
其中day将被赋予整数值8
python date
date ×1
python ×1