出现如上问题 我们可以通过微软发布的更新补丁,解决这个问题。 链接:https://pan.baidu.com/s/1ZMEbcpIP5dmsrJkqNP-M8A 提取码:4aq2 @echo offecho Run as administratorpauseset up=d:\update ech ...
分类:
Windows程序 时间:
2020-03-31 12:00:04
阅读次数:
1239
1.创建sh文件 touch hello.sh vi hello.sh 输入i 插入 #!/bin/sh echo hello world; 按esc 输入:然后输入wq保存退出 增加sh执行权限 chmod 700 hello.sh 有执行权限的文件是绿色的 执行./hello.sh 2.加入定时 ...
分类:
系统相关 时间:
2020-03-30 23:12:47
阅读次数:
90
#!/bin/bash #遇到不存在的变量,终止脚本的执行 set -o nounset #遇到执行出错,终止脚本的执行 set -o errexit #封装函数有必要 #使用静态变量声明readonly和local修饰变量 #使用$()代替`(反单引号) #使用[[]]代替[] #echo不是唯一 ...
分类:
系统相关 时间:
2020-03-30 21:42:26
阅读次数:
82
查看本机IP,嗯,这个有点乱 我之前利用它做别的事情了 懒得修改了。 新建批处理bat文件, .txt→.bat 改扩展名或txt里另存为.bat就可以 @echo offipconfig ^ | findstr "IP address" >ipadd.txtfor /f "tokens=2 del ...
分类:
其他好文 时间:
2020-03-30 16:36:39
阅读次数:
71
批处理bat倒计时显示 新建批处理bat文件, .txt→.bat 改扩展名或txt里另存为.bat就可以 红色数字是倒数时间可自行修改,提醒汉子也可以自行修改 @echo offfor /l %%i in (12,-1,0) do (clsecho.echo.echo.echo. 倒计时数%%i后 ...
分类:
其他好文 时间:
2020-03-30 16:18:02
阅读次数:
470
1.文件名、文件后缀获取. 已有文件 FILE="example.tar.gz",获取文件名和文件后缀方式如下: echo "${FILE%%.*}" # => example echo "${FILE%.*}" # => example.tar echo "${FILE#*.}" # => tar ...
分类:
系统相关 时间:
2020-03-30 00:13:08
阅读次数:
219
例子:sh脚本#!/bin/shdate2=$(date +%Y-%m-%d)' '$(date +%H:%M:%S)echo 'date2:'$date2打印出的结果是:date2:2012-11-22 14:34:32 原文:https://www.iteye.com/blog/jinnaxu- ...
分类:
系统相关 时间:
2020-03-29 21:07:21
阅读次数:
110
$start_memory = memory_get_usage();$foo = "Some variable";echo memory_get_usage() - $start_memory;这个可以获取所有变量类型的大小strlen($foo) 这个可以获取当前字符串的字节大小 除以8就是位大 ...
分类:
Web程序 时间:
2020-03-29 01:45:50
阅读次数:
287
最近使用Pyspark的时候,遇到一些新的问题,希望记录下来,解决的我会补充。 1. WARN DomainSocketFactory: The short-circuit local reads feature cannot be used 2. pyspark TypeError: 'Pipel ...
分类:
其他好文 时间:
2020-03-28 20:14:18
阅读次数:
198