2018年9月3日

判断文件是否存在的shell脚本代码!

摘要: 判断文件是否存在的shell脚本代码! 实现代码一 #shell判断文件夹是否存在 #如果文件夹不存在,创建文件夹 if [ ! -d "/Top" ]; then mkdir -p /Topfi #shell判断文件,目录是否存在或者具有权限 folder="/Top" file="/Top/test.txt" # -x 参数判断 $folder 是否存在并且是否具有可执... 阅读全文

posted @ 2018-09-03 21:18 连登 阅读(612) 评论(0) 推荐(0)

pycharm编码

摘要: 阅读全文

posted @ 2018-09-03 20:33 连登 阅读(299) 评论(0) 推荐(0)

最明白的循环

摘要: count = 0 while True: print("count:",count) count = count+1 if count == 1000: break #改成for循环,控制三次#换成for语句:()里面 定义循环的次数age_of_oldboy = 56 for i in range(3): guess_age = in... 阅读全文

posted @ 2018-09-03 19:37 连登 阅读(121) 评论(0) 推荐(0)

输入密码不显示明文

摘要: 密码 阅读全文

posted @ 2018-09-03 18:00 连登 阅读(650) 评论(0) 推荐(0)

导航