摘要: import json dic={"chao":"123"} dic_en=json.dumps(dic) print(dic_en,type(dic_en)) {"chao": "123"} <class 'str'> print(dic,type(dic)) {'chao': '123'} <c 阅读全文
posted @ 2019-06-28 20:32 AnthonyWang 阅读(271) 评论(0) 推荐(0) 编辑
摘要: from组件 form组件的功能 生产input标签 对提交的数据可以进行校验 提供错误提示 定义form组件 使用 视图 模板 常用字段 字段参数 验证 写函数 2.使用内置的校验器 局部钩子 全局钩子 is_valid的流程: 1.执行full_clean()的方法: 定义错误字典 定义存放清洗 阅读全文
posted @ 2019-06-28 16:14 AnthonyWang 阅读(122) 评论(0) 推荐(0) 编辑