-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6.py
More file actions
34 lines (30 loc) · 754 Bytes
/
6.py
File metadata and controls
34 lines (30 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# dict1 = {'Alice': '2341', 'Beth': '9102', 'Cecil': '3258'}
# dict2 = {x : dict1[x]+"444444" for x in dict1}
# for key,value in dict2.items():
# print('key = '+ key)
# print('value = '+ value + '\n')
# a = ['0','1','2','3']
# b = ['people','blue','yellow','black']
# peoples = {key:value for key,value in zip(a,b)}
# # # print(peoples)
# # # a = peoples.pop('0')
# # # print(a)
# # for k in peoples.keys():
# # print(k+':'+peoples[k])
# print(peoples)
#
# fl = {
# 'yzq':'python',
# 'zhj':'java',
# 'yhb':'java',
# "zy":'java'
# }
# m = ['zdy','yzq','zy']
#
# for name in m:
# print(name+'最喜欢的语言是:'+fl.get(name,'None'))
# # print(fl.items())
# a = ['1']
# for i in a:
# a.append('4')
# print(i)