Python以key的for循环 a = {'zhang': 2018, "phil": "2019", "blog": 'csdn'}for key in a: print(key, a[key])for item in a.items(): print(item)输出:zhang 2018phil 2019blog csdn('zhang', 2018)('phil', '20... Python 2023-12-10 44 点赞 0 评论 66 浏览