开发者社区 问答 正文

python字典的items方法示例是什么?

python字典的items方法示例是什么?

展开
收起
游客qzzytmszf3zhq 2021-11-04 23:02:54 339 分享 版权
1 条回答
写回答
取消 提交回答
  • #items 取出全部的键值对,返回dict_items a = {1:111,2:222,3:333,4:444} print(a.items(),type(a.items()))

    2021-11-04 23:03:19
    赞同 展开评论