在老毛子的文章里看到的获取本地ip的方法。实现蛮简单。没找到多少关于idStack相关的说明,有空再去外网溜达看看。先记录下。 program 获取本地ip; {$APPTYPE CONSOLE} {$R *.res} uses IdStack; function GetIPLocal: strin ...
分类:
其他好文 时间:
2021-02-15 12:33:49
阅读次数:
0
转自: http://blog.csdn.net/petrel_zhu/article/details/46756869 在我们身边各类P图工具已经不胜枚举。我们或许已经会使用这类p图工具,但是对其原理却是知之甚少。最近学习了一些图像处理的知识,对其有大概的了解,这次我简单简述下增强图像对比度的方法 ...
分类:
其他好文 时间:
2021-02-10 13:26:27
阅读次数:
0
debain10 修改apt源为aliyun mv /etc/apt/sources.list /etc/apt/sources.list.bak && vi /etc/apt/sources.list deb https://mirrors.aliyun.com/debian/ buster ma ...
分类:
其他好文 时间:
2021-02-09 12:34:02
阅读次数:
0
docker常用命令 docker 列出images docker images docker 镜像保存 nginx-fun 为镜像名字 docker commit -m "fun" 034b9f9528c4 nginx-fun docker 删除镜像 docker rmi 1d0ae87c852d ...
分类:
其他好文 时间:
2021-02-09 12:00:57
阅读次数:
0
Python是没有swithch语句, 这点还是对于我们这些整Java/C/Shell/... 人都是很不习惯, 你得这样才行! #!/usr/bin/env python2 junk = "shoo2" def shoo_fun1(): print "hello ok1" def shoo_fun ...
分类:
编程语言 时间:
2021-02-08 12:09:39
阅读次数:
0
日常开发中我们经常会遇到表单验证呀,关键字搜索呀,字符替换呀,还有面试笔试中都可能会用到,接下来,我想自己总结一下我接触过的前端正则的那些事 平常写代码,无非就是[0-9],[a-z],[A-Z],\w,\d,.,+,*,?,^,$ 但是这些有可能只是做像表单验证或者简单的替换,如果想来点不一样st ...
分类:
Web程序 时间:
2021-02-06 12:00:16
阅读次数:
0
分享一些我常用的代码优化技巧,希望对你有帮助。 1. 多表达式多 if 判断 我们可以在数组中存储多个值,并且可以使用数组include方法。 1 // 长 2 if (x 'abc' || x 'def' || x 'ghi' || x 'jkl') { //logic} 3 // 短 4 if ...
分类:
编程语言 时间:
2021-02-05 10:39:53
阅读次数:
0
rule:{ name:"", age:"" } watch:{ rule:{ handler:function(){ //do something }, deep:true } } deep设置为true的意思是修改rule中任何一个属性,都会执行handler这个方法,但是这样消耗比较大,对象嵌 ...
分类:
其他好文 时间:
2021-02-03 10:56:49
阅读次数:
0
python定义函数用def 关键字声明 # 定义函数 和 调用函数 def fun(n): return n print(fun(2)) ...
分类:
编程语言 时间:
2021-02-03 10:46:15
阅读次数:
0
/** * 判断是否是字符串 * @param target */static isString(target: any) { return target && typeof target == 'string' && target.constructor == String;}/** * 判断是否 ...
分类:
其他好文 时间:
2021-02-02 11:11:35
阅读次数:
0