逐一打印字典中的所有值
- thisdict = {
- "brand": "Porsche",
- "model": "911",
- "year": 1963
- }
- for x in thisdict:
- print(thisdict[x])
上一篇:逐一打印字典中的所有键名
- thisdict = {
- "brand": "Porsche",
- "model": "911",
- "year": 1963
- }
- for x in thisdict:
- print(thisdict[x])
本文档使用 技术池 构建