开发者社区 问答 正文

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

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

展开
收起
游客qzzytmszf3zhq 2021-11-04 22:57:22 307 分享 版权
1 条回答
写回答
取消 提交回答
  • #popitem 随机删除一个键值对 a = {1:111,2:222,3:333,4:444} print(a.popitem(),type(a.popitem())) print(a)

    2021-11-04 22:57:36
    赞同 展开评论