. shell逻辑表达式 #!/bin/bash FILE_BASED_ENCRYPTION="true" if [ "$FILE_BASED_ENCRYPTION" == "true" ]then echo "if: first one" || echo "if: second one"else ...
分类:
系统相关 时间:
2021-03-30 13:52:37
阅读次数:
0
Shell脚本基础 变量 什么是变量? 变量即可以变化的量 变量名称注意事项 只能包含字母、数字、下划线,并且不能以数字开头 不应该跟系统中已有的环境变量重名,尽量不要全部使用大写,尽量不要用“_”下划线开头 最好做到见名知义 不能使用程序中的保留字,例如if、for等 变量类型 字符型 数值型 整 ...
分类:
系统相关 时间:
2021-03-30 13:46:50
阅读次数:
0
Shell函数 linux shell 可以用户定义函数,然后在shell脚本中可以随便调用。 shell中函数的定义格式如下: [ function ] funname [()] { action; [return int;] } 说明: 1、可以带function fun() 定义,也可以直接f ...
分类:
系统相关 时间:
2021-03-30 13:46:15
阅读次数:
0
1 import os 2 3 # 获取手机系统信息 4 phone_sys = os.popen('adb shell "cat /system/build.prop | grep "product""').read() 5 print(phone_sys) 6 7 # 获取手机设备型号 8 de ...
分类:
编程语言 时间:
2021-03-30 13:42:38
阅读次数:
0
When dealing with `fs` library, the common problem you will meet is the path to file. Different envs may have different way to handle the path. The be ...
分类:
Web程序 时间:
2021-03-30 13:42:21
阅读次数:
0
import contextlib import pyhdfs class HdfsUtil(object): def __init__(self, hosts='namenode1:9870,namenode2:9870', user_name='hdfs'): self.hosts = host ...
分类:
编程语言 时间:
2021-03-30 13:29:22
阅读次数:
0
依赖: <!--xls(03)--> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.1.2</version> </dependency> <!--xlsx(07)--> ...
分类:
其他好文 时间:
2021-03-30 13:28:43
阅读次数:
0
背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: KVM版本:5.9.1 QEMU版本:5.0.0 工具:Source Insight 3.5, Visio 文章同步在 ...
分类:
系统相关 时间:
2021-03-30 13:07:40
阅读次数:
0
定义一个内部类,直接将内部类定义在外围类的里面。 interface yu{ void sout(); } public class lc_2 { public int num1; private int num2; class innerClass implements yu{ public in ...
分类:
其他好文 时间:
2021-03-30 13:02:50
阅读次数:
0
解决国内gitclone慢的问题 问题 当我们在git bash里clone资源的时候往往很慢,只有十几K。 解决办法 第一步:打开www.gitclone.com 第二步:嵌入一段字符: 比如:目标对象是: git clone https://github.com/iissnan/hexo-the ...
分类:
其他好文 时间:
2021-03-30 12:52:02
阅读次数:
0