笨办法学python加分习题34

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略



运行截图:


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值