索引示例
#根据给定的年月日以数字形式打印出日期
months = [
‘January’,
‘February',
‘March’,
‘April’,
‘May’,
‘June’,
‘July’,
‘August',
'September',
'October',
'November',
'December'
]
#以1~31的数字作为结尾的列表
endings = ['st' , 'nd' , 'rd'] + 17 * ['th'] \
+ ['st' , 'nd' , 'rd']
原创
2020-12-07 17:18:00 ·
171 阅读 ·
0 评论