摘要: 字典:键值对应 类似json ```d = {'1' : 2, "3": 4}d["5"] = 6 #插入新的键值if ('1' in d):#in方法表示判断该键是否在列表中 print("true")else: print("flase")value = d.get('1') #get()方法传 阅读全文
posted @ 2019-03-06 17:25 null_123 阅读(146) 评论(0) 推荐(0) 编辑
摘要: QString InfoBase::JsonToString(const QJsonObject& json) const { return QString(QJsonDocument(json).toJson(QJsonDocument::Compact)); } QJsonObject InfoBase::StringToJson(const QString& str) const { ... 阅读全文
posted @ 2019-03-06 10:45 null_123 阅读(4182) 评论(0) 推荐(0) 编辑