你们之中大概率早已练就了代码的拷贝、粘贴,无敌的码农神功,其实做久了业务功能开发,练就这两个无敌神功,那是迟早的事儿。今天先抛一个小问题,来打通你的任督二脉,就是很好奇的问一下:业务功能开发中,输入参数校验占了你多少时间呢?有没有考虑如何进行验证模块化、通用化? 咱们还是换个问法,看看元芳怎么看。“ ...
Problem : Given two arrays, write a function to compute their intersection. Example 1: Example 2: Note: Each element in the result must be unique. The ...
分类:
其他好文 时间:
2020-04-02 01:22:47
阅读次数:
64
页面代码:(用到的mui样式, 已使用cdn替换) <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-reva ...
分类:
Web程序 时间:
2020-04-01 15:01:13
阅读次数:
86
Every request proxied by Kong must be associated with a Consumer. You’ll now create a Consumer named anonymous_users 启用认证插件后,如果不配置匿名用户,那么如果客户 端不传递凭据,那 ...
分类:
数据库 时间:
2020-03-31 22:57:50
阅读次数:
239
problem1:ValueError: Dimension 2 in both shapes must be equal, but are 128 and 256 for 'Assign_78' (op: 'Assign') with input shapes: [1,1,128,512], [1 ...
分类:
其他好文 时间:
2020-03-30 23:09:37
阅读次数:
92
锁:可以保证线程同步和线程安全 1)Lock锁 方式1:Lock from threading import Thread, Lock import threading def run(lock, num): lock.acquire() # 获得锁 threadName = threading.c ...
分类:
编程语言 时间:
2020-03-28 20:14:36
阅读次数:
65
Gazebo_02_build_a_robot [toc] build a robot http://gazebosim.org/tutorials?tut=model_structure&cat=build_robot Model Structure and requirements ambula ...
分类:
其他好文 时间:
2020-03-27 21:57:50
阅读次数:
104
1、strcmp比较字符串 0、 1、这里strcmp()函数漏洞,在传入非字符串类型的变量,一般是数组,函数返回值是0,payload:?a[]=1。 2、md5()函数 1、md5绕过,payload:?username[]=1&password[]=2。 3、extract变量覆盖 1、ext ...
分类:
其他好文 时间:
2020-03-27 17:03:56
阅读次数:
106
1.文档 在Elasticsearch中,文档以JSON格式进行存储,可以是复杂的结构,如: { "_index": "haoke", "_type": "user", "_id": "1005", "_version": 1, "_score": 1, "_source": { "id": 100 ...
分类:
其他好文 时间:
2020-03-25 23:36:17
阅读次数:
72
The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data 在mac上用Xcod ...
分类:
系统相关 时间:
2020-03-25 01:00:19
阅读次数:
108