赞
踩
动手练一练
- # 动手试一试
- #6—1
- lingling={
- 'first_name':'lingling',
- 'last_name':'huang',
- 'age':'13',
- 'city':'dezhou',
- }
- print(lingling)
-
- #6—2 喜欢的数字
- friends={
- 'lingling':'5',
- 'daming': '3',
- 'sam': '2',
- 'tom': '1',
- }
- print(friends)
-
- #6_3 词汇表
- words={
- 'dog':'wangwang',
- 'cat':'miaomiao',
- 'bird':'jiji',
- 'dragon':'wawa',
- }
- for word in words:
- print(word+" : "+words[word])
-
- for word in words:
- print(word+"\n\t"+words[word])
-
- # 动手试一试
- # 6-4 词汇表 2:
- favorite_languages={
- 'jen':'python',
- 'sarah':'c',
- 'daming':'java',
- 'sam':'c++',
- }
- for name,language in fa
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。