笨办法学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略
运行截图:
#加分习题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加分习题31
- 笨办法学python加分习题16
- 笨办法学python加分习题35
- 笨办法学python加分习题32
- 笨办法学python加分习题39
- 笨办法学python加分习题28
- 笨办法学python加分习题29
- 笨办法学python加分习题26
- 笨办法学Python习题35-加分习题
- 笨办法学python加分习题20
- 笨办法学python加分习题38
- 笨办法学python加分习题21
- 笨办法学python加分习题24
- 笨办法学python加分习题30
- 笨办法学python加分习题15
- 笨办法学python加分习题17
- 笨办法学python加分习题36
- 笨办法学Python笔记-习题1:第一个程序
- 笨办法学Python-习题37-39
- 笨办法学Python-习题40