码迷,mamicode.com
首页 >  
搜索关键字:Shell while    ( 55956个结果
java byte[]与十六进制字符串相互转换
###案例1 java byte[]与十六进制字符串相互转换 import java.util.Arrays; public class ccc { public static void main(String[] args) { int[] array ={-6, 1, 18, 114, 54, ...
分类:编程语言   时间:2021-04-01 12:57:31    阅读次数:0
非递归 前序/中序/后序 遍历二叉树
非递归前序遍历二叉树 1 void preTraverse(const BiTree &T){ 2 //initialStack(stack) 3 BiTree stack[MAX]; 4 int top=-1; 5 BiTree p=T; 6 //while(!stackEmpty(stack)| ...
分类:其他好文   时间:2021-03-31 12:27:44    阅读次数:0
shell编程实现创建新用户和打包文件
shell编程实现创建新用户和打包文件 1、shell编程创建新用户 #! /bin/bash `useradd $1` `echo $2 | passwd --stdin $1` 假设这个文件的名称为test.sh,则操作方式为: ./test.sh admin 123456 其中1参为用户名,2 ...
分类:系统相关   时间:2021-03-31 12:11:52    阅读次数:0
C# While 超时设置
DateTime dt_now = DateTime.Now;//获取当前时间 while (dt_now.AddMinutes(1) > DateTime.Now) { //Todo:执行自己的操作 await Task.Delay(1000);//延迟1s } View Code 相对比较优雅一 ...
分类:Windows程序   时间:2021-03-31 11:49:06    阅读次数:0
搞懂二分查找
class Solution { public static void main(String[] args) { int[] arr = new int[]{0, 1, 2, 2, 2, 3, 4, 5}; //int index = binarySearch(arr, 2); //int ind ...
分类:其他好文   时间:2021-03-31 11:46:55    阅读次数:0
linux shell命令之REPLY
vi readreply.sh #!/bin/bash#第一部分 echo -n "What is your name?"readecho "Your name is $REPLY" #已将变量的值从标准输入读到REPLY #第二部分echo -n "What is the name of your ...
分类:系统相关   时间:2021-03-30 13:53:42    阅读次数:0
shell misc
. 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脚本基础
Shell脚本基础 变量 什么是变量? 变量即可以变化的量 变量名称注意事项 只能包含字母、数字、下划线,并且不能以数字开头 不应该跟系统中已有的环境变量重名,尽量不要全部使用大写,尽量不要用“_”下划线开头 最好做到见名知义 不能使用程序中的保留字,例如if、for等 变量类型 字符型 数值型 整 ...
分类:系统相关   时间:2021-03-30 13:46:50    阅读次数:0
Shell函数
Shell函数 linux shell 可以用户定义函数,然后在shell脚本中可以随便调用。 shell中函数的定义格式如下: [ function ] funname [()] { action; [return int;] } 说明: 1、可以带function fun() 定义,也可以直接f ...
分类:系统相关   时间:2021-03-30 13:46:15    阅读次数:0
uiautomator2结合python的一些操作
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
55956条   上一页 1 ... 39 40 41 42 43 ... 5596 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!