#-*- coding:UTF-8 -*- #author:RXS002 #1.字典 dict = {'name':'Zara','age':7,'class':'First'} #字典转换为字符串,返回:<type 'str'> {'age':7,'name':'Zara','class':'First'} print (type(str(dict)),str(dict)) #字典可以转为元祖,返回:('age','name','class') print (tuple(dict) #字典可…