序列是一python的一种数据结构,它的成员都是有序排列的,并且可以通过下标偏移量访问 到它的一个或几个成员。(正索引从首部访问,副索引从尾部访问)。...[2]print(str01)**注意事项 :**python 没有字符类型,所以通过索引获取到的其实是一个单字符的字符串当你使用负数索引时,Python将从右(即从最后一个元素)开始往左数# 讲输入数字以指定年月日的日期打印出来...', 'nd', 'rd'] + 17 \* ['th'] + ['st', 'nd', 'rd'] + 7 \* ['th'] + ['st']print(ending)year = input("Year...', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'th...', 'th', 'th', 'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th', 'th', 'st']Year: 2021Month(1-12)