您的位置:首页 > 编程语言 > Python开发

笨办法学python加分习题34

2018-02-08 12:07 288 查看
python版本:3      若有错误,敬请指出 模块名称:测试.py
#加分习题34

animals = ['bear','python','peacock','kangaroo','whale','platypus']
#1.The animal at 1.
print("The animal at 1 and is",animals[1])
#2.The 3rd animal.
print("The 3rd animal and is",animals[2])#以下自行添加
#3.The 1st animal.
print(animals[0])
#4.The animal at 3.
print(animals[3])
#5.The 5th animal.
print(animals[4])
#6.The animal at 2.
print(animals[2])
#7.The 6th animal.
print(animals[5])
#8.The animal at 4.
print(animals[3])

#1参考博主http://blog.csdn.net/qq_37190930/article/details/79078182
#cardinal 基数
#ordinal序数
#序数是在基数的基础上再增加一层意思。
#例如:
#  基数:一、二、三、四、五、六、七、八、九、十。
#  序数:第一、第二、第三、第四、第五、第六、第七、第八、第九、第十。
#基数是一种特殊的序数。把序数按等势关系归划,每一类中的最小序数就是基数,从而成为这类序数的势。
#序数词是指表示顺序的数词。说明第几个。基数词是表示数目的词。说明有几个
#2
#不知道==
#3略
#4略


运行截图:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python