# -*- coding: utf-8 -*-写代码,有如下字典,按要求实现每个功能dic={'k1':'v1','k2':'v2','k3':'v3'}1.请循环遍历出所有的key:dic={'k1':'v1','k2':'v2','k3':'v3'}print(dic.keys())for key in dic.items(): print(dic.keys())2.请循环遍历出所有的value:dic={'k1':'v1','k2':'v2','k3':'v3'}print(dic.val…