Python 学习笔记-点点滴滴

来源:互联网 发布:干了这碗恒河水 知乎 编辑:程序博客网 时间:2024/06/06 00:37

常用知识点

Dict示例

x={'a':'aaa','b':'bbb','c':'ccc'}for key in x:    print("in x,if Key is %s and then the value is %s"%(key,x[key]))

结果


in x,if Key is a and then the value is aaa
in x,if Key is b and then the value is bbb
in x,if Key is c and then the value is ccc


0 0
原创粉丝点击