view中使用is_valid()方法: 局部钩子和全局钩子函数代码 通过is_valid()方法找到源码中的run_validation 最后执行self.to_internal_value(data) 流程总结: is_valid self.run_validation (执行Serialize ...
分类:
其他好文 时间:
2019-02-24 16:16:55
阅读次数:
212
题目描述: Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input:s = "anagram", t = "nagaram" Output: true Ex ...
分类:
其他好文 时间:
2019-02-22 21:08:03
阅读次数:
159
193. Valid Phone Numbers 193. Valid Phone Numbers Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bas ...
分类:
其他好文 时间:
2019-02-22 01:07:44
阅读次数:
213
描述:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. ...
分类:
其他好文 时间:
2019-02-19 12:02:48
阅读次数:
153
Valid BFS? CodeForces - 1037D The BFS algorithm is defined as follows. Consider an undirected graph with vertices numbered from 11 to nn. Initialize q ...
分类:
其他好文 时间:
2019-02-17 23:31:22
阅读次数:
158
安装centos7后发现不能上网, 将ONBOOT=no改为ONBOOT=yes 然后重启网络服务 再次测试 就可以ping通了! 参考: https://www.cnblogs.com/linnuo/p/6257204.html ...
分类:
Web程序 时间:
2019-02-16 15:11:03
阅读次数:
196
20. Valid Parentheses Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input ...
分类:
Web程序 时间:
2019-02-16 13:42:21
阅读次数:
237
代码质量实战Any fool can write code that a computer can understand. Good programmerswrite code that humans can understand. -- Martin FowlerThe only valid me ...
分类:
编程语言 时间:
2019-02-15 15:46:00
阅读次数:
189
mosquitto配置通过ssl通信 摘自https://www.cnblogs.com/stin/p/9258211.html 注意项:For openssl >= 1.0.1 the valid values are tlsv1.2 tlsv1.1 and tlsv1.For openssl < ...
分类:
其他好文 时间:
2019-02-13 20:50:30
阅读次数:
196
Algorithm 【leetcode】125验证回文串 https://leetcode.com/problems/valid palindrome/ 1)problem 2)answer 1、普通思路 把数字和字符提取出来,然后如果是字母就转换为小写。加到新的字符串中。 对于这个新的字符串,使用 ...
分类:
其他好文 时间:
2019-02-10 00:01:38
阅读次数:
175