博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python3.5 字典遍历
阅读量:4350 次
发布时间:2019-06-07

本文共 266 字,大约阅读时间需要 1 分钟。

1、遍历字典dict={
'a': '1', 'b': '2', 'c': '3'}for key in dict: print(key+':'+dict[key])ssh://root@192.168.0.204:22/usr/bin/python -u /home/progect/app/py_code/test1.pya:1b:2c:3Process finished with exit code 0

 

转载于:https://www.cnblogs.com/effortsing/p/10093198.html

你可能感兴趣的文章
KOA中间件源码解析
查看>>
构建之法阅读笔记03
查看>>
jquery 点击切换值
查看>>
vue+element前端自行分页
查看>>
C#操作XML
查看>>
tkinter学习02
查看>>
Mapnik使用postgres中的栅格数据
查看>>
html基本知识
查看>>
IOS手势不识别
查看>>
IOS网络编程之请求内容
查看>>
爬虫——为什么有代理
查看>>
HDU 1599 find the mincost route(floyd求最小环 无向图)
查看>>
vue v-for循环checkbox存在的问题
查看>>
hibernate模糊查询-Restrictions.ilike & Expression.like
查看>>
二分·归并排序之逆序对 算法讲解和题目
查看>>
python @property
查看>>
J2SE基础夯实系列之String字符串不可变的理解,不可变类,final关键字到底修饰了什么...
查看>>
2.7 UML状态图
查看>>
【linux】记录一下遇到的各种问题
查看>>
python学习之day4,函数
查看>>