一、model操作 1、创建数据库表 2、操作数据库表 3、数据验证(弱) 二、Form操作 1、数据验证(强大) 三、ModelForm 1、数据库操作 2、数据验证 ModelForm耦合太强,建议操作用model,验证用Form。 ModelForm >Form >Model Django之M ...
分类:
其他好文 时间:
2017-04-21 17:54:01
阅读次数:
2068
原题链接在这里:https://leetcode.com/problems/find-leaves-of-binary-tree/#/description 题目: Given a binary tree, collect a tree's nodes as if you were doing th ...
分类:
其他好文 时间:
2017-04-21 09:27:16
阅读次数:
272
阅读目录(Content) 1 what's binary log 2 Binary Logging Options and Variables 2.1 基础参数 3 Binary Logging Formats 3.1 binlog_format=statement 3.2 binlog_form ...
分类:
其他好文 时间:
2017-04-20 23:08:30
阅读次数:
302
不同进制的书写方式 八进制(Octal) 0o377十六进制(Hex) 0xFF二进制(Binary) 0b11111111 不同进制之间的转换 python提供了三个内置的函数,能够用来在不同进制间做转换。 >>> oct(255), hex(255), bin(255) ('0o377', '0 ...
分类:
编程语言 时间:
2017-04-20 20:52:35
阅读次数:
158
git地址:https://github.com/tensorflow/models.git"""Routine for decoding the CIFAR-10 binary file format.""" from __future__ import absolute_import from ... ...
分类:
其他好文 时间:
2017-04-20 18:29:25
阅读次数:
570
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/#/description ...
分类:
其他好文 时间:
2017-04-20 15:25:28
阅读次数:
124
凯莱公式: spanning_trees_num( G ) = spanning_trees_num( G - e ) + spanning_trees_num( G · e ) 矩阵树定理: G 相应的拉普拉斯矩阵(度矩阵 - 邻接矩阵)L( G ) 删除随意一行一列得到的行列式的值det( L* ...
分类:
其他好文 时间:
2017-04-19 12:48:36
阅读次数:
256
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an ...
分类:
其他好文 时间:
2017-04-18 22:16:27
阅读次数:
142
总是搞不清楚,每次自己测试之后又忘记。故今天记录在案 CST_NAME输入大于5个字符或两个汉字加一个字符,报错String or binary data would be truncated.The statement has been terminated. length varchar和nva ...
分类:
数据库 时间:
2017-04-18 22:01:06
阅读次数:
363
使用DBCC PAGE命令查看索引叶子层中的索引键(最后一个参数为3才会显示索引键对应的HEAP RID)时,可以使用下面的SQL将HEAP RID转换成 FileId:PageId:SlotNo的格式。这样可以根据索引键查找到RID所在页。 DECLARE @HeapRid BINARY(8) S ...
分类:
其他好文 时间:
2017-04-18 18:34:35
阅读次数:
265