python 字典练习

dict = {“k1”:“v1”,“k2”:“v2”,“k3”:“v3”}
for key in dict:
print(key)
print(dict[key])
for key in dict:
print(key,’:’,dict[key]*2)
print(dict[key])
for key,value in dict.items():
print(key,’:’,dict[key]*2)

你可能感兴趣的:(jupyter,notebook,python,jupyter,vscode)