摘要: /* 时间:2020/10/21 功能:类型转换 目录: 一: dict <-> json 二: dict <-> str 三: return 1 三种 2 json 四: 传参json */ 一: dict <-> json #coding:utf-8 import json dict = { " 阅读全文
posted @ 2020-10-21 23:08 火焰马 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 dict = { "name" : "zhang_san", "age" : 24, "subject_list" : ("English", "Chinese", "Math"), "subject_content" : { 'English' : 88, "Chine 阅读全文
posted @ 2020-10-21 13:14 火焰马 阅读(77) 评论(0) 推荐(0) 编辑
摘要: # 数据类型 # 一般操作 #coding:utf-8 none = None # None print(none, type(none)) bool = False print(bool, type(bool)) int = 12 print(int, type(int)) float = 12. 阅读全文
posted @ 2020-10-21 13:02 火焰马 阅读(104) 评论(0) 推荐(0) 编辑