Python字符串、元组、列表、字典互相转换的方法
摘要:#-*-coding:utf-8-*- #1、字典dict = {'name': 'Zara', 'age': 7, 'class': 'First'} #字典转为字符串,返回:<type 'str'> {'age': 7, 'name': 'Zara', 'class': 'First'}prin
阅读全文
posted @ 2017-01-23 15:49
posted @ 2017-01-23 15:49
posted @ 2017-01-23 15:40