显示状态1-处于"/"旋转 #!/bin/sh sleep 10 & pid=$! # Process Id of the previous running command spin='-\|/' i=0 while kill -0 $pid 2>/dev/null do i=$(( (i+1) % ...
分类:
系统相关 时间:
2020-05-22 19:39:19
阅读次数:
349
django 管理后台上传图片1.安装pillow pip install Pillow 2.创建app python manage.py startapp upload 3. project设定settings.py INSTALLED_APPS = [ 'django.contrib.admin ...
分类:
Web程序 时间:
2020-05-22 19:37:33
阅读次数:
103
: if not s: # [["2020-05-21 15:00:00","2737.000","2742.000","2737.000" ...
分类:
编程语言 时间:
2020-05-22 13:03:06
阅读次数:
53
一.实现目标:在第三方应用程序运行时,启动应用程序监控第三方应用程序指定函数方法,在指定函数方法被调用时,拦截该方法并可修改函数方法的内容及返回值。 二.背景条件 应用程序是.Net应用程序 拦截程序和第三方应用程序在同一设备上 知悉第三方应用程序调用的函数方法名称及传参和返回值 二使用开源类库: ...
分类:
Web程序 时间:
2020-05-22 12:31:38
阅读次数:
67
本文主要对Java并发(Concurrent)相关的概念进行说明。1.进程(Process)与线程(Thread)进程是系统资源分配的最小单元。线程是CPU调度的最小单元。一个进程至少包含一个线程,可以包含多个线程。这些线程共享这个进程的资源。每个线程都拥有独立的运行栈和程序计数器,线程切换开销小。多进程指的是操作系统同时运行多个程序,如当前操作系统中同时运行着QQ、IE、微信等程序。多线程指的是
分类:
编程语言 时间:
2020-05-22 09:21:33
阅读次数:
56
我们有时希望对一个已经打开的浏览器进行测试。 1.使用Debug 方式启动浏览器 Process proc = new Process(); proc.StartInfo.FileName = @"C:\Program Files (x86)\Google\Chrome\Application\ch ...
分类:
其他好文 时间:
2020-05-21 16:30:13
阅读次数:
446
1.在application.properties中增加下列属性 #monitor mail configspring.mail.host=smtp.mxhichina.com(根据邮箱来定,此示例是阿里云企业邮箱)spring.mail.port=25(根据邮箱来定)spring.mail.use ...
分类:
编程语言 时间:
2020-05-21 09:34:48
阅读次数:
157
1.进程1读取数据,主进程读数据,然后写数据进程2读取数据 $child1 = new swoole_process("children",false,true); //进程1写 function children($process){ static $index=0; while(true){ $ ...
分类:
Web程序 时间:
2020-05-20 17:15:14
阅读次数:
99
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or ...
分类:
其他好文 时间:
2020-05-20 14:12:20
阅读次数:
55