摘要:
在字典中遍历时,关键字和对应的值可以使用 items() 方法同时解读出来: >>> knights = {'gallahad': 'the pure', 'robin': 'the brave'} >>> for k, v in knights.items(): ... print(k, v) . 阅读全文
posted @ 2023-11-02 15:31
Python探索牛
阅读(49)
评论(0)
推荐(0)
浙公网安备 33010602011771号