码迷,mamicode.com
首页 >  
搜索关键字:do while循环    ( 14864个结果
linux基础 7-3-条件判断语句案例
1.自动化添加和删除用户脚本 #! /bin/bash if [ $# -lt 1 ]; then echo "usage:admin ARC" exit 7 fi if [ $1 == 'add' ]; then for i in {1..10}; do if id user$i &> /dev/ ...
分类:系统相关   时间:2020-06-09 23:41:51    阅读次数:94
Linux基础7-9 Bash编程--for循环语句
什么是循环: 具有进入条件和退出条件,且在进入条件一直为true时,反复执行内部表达式的语句,称为循环语句 循环语句通常由循环体和循环判断条件两部分组成 常用的循环语句: for while until for循环: 语法: for [变量] in [列表] :do 循环体 done 列表执行完后便 ...
分类:系统相关   时间:2020-06-09 23:40:20    阅读次数:80
九九乘法表-for循环和while循环
九九乘法表 方式一:while循环实现九九乘法表 1 a = 1 2 while a <= 9: #纵向:循环9次, 3 b = 1 4 while b <= a: #横向:循环,依据第二个乘数,或者依据行数来控制循环次数 5 print("%dx%d=%-2d " % (a, b, a*b),en ...
分类:其他好文   时间:2020-06-09 23:26:37    阅读次数:85
ubuntu etho0 up cron
sudo touch if_interface_up.shsudo chmod 777 if_interface_up.sh sudo vi if_interface_up.sh #!/bin/bashwhile true do result=`cat /sys/class/net/enp0/car ...
分类:系统相关   时间:2020-06-09 20:17:09    阅读次数:66
Smart Action Plan: How To Set SMART Goals
How badly do you want to achieve your goals? Whether or not your goal is to drop 10 pounds for the summer, or to open your own small business, a smart ...
分类:其他好文   时间:2020-06-09 16:22:01    阅读次数:129
【Java】循环结构
如果想要多次同样的操作,就是用循环结构 java有三种主要的循环结构: - while循环 -do...while循环 -for循环 ps(在java5中引入了一种新的增强for循环) 1.while循环:它是最基本的循环 2.do...while循环 对于while循环而言,如果不满足条件,就不会 ...
分类:编程语言   时间:2020-06-09 15:00:50    阅读次数:73
What's next?
Retire deprecated micro app projects. (Repo, Codeship, S3) Improve our code structure, how do we layout/split our components and services? https://ind ...
分类:其他好文   时间:2020-06-09 10:06:09    阅读次数:144
But How Do It Know 关于人工智能的思考
神图 能够实时观察设计的cpu是如何执行指令的。网页地址:http://www.buthowdoitknow.com/but_how_do_it_know_cpu_model.html Philosophy But How do it Know(计算机是怎么知道的) 近乎成了一个哲学问题,这本书讲述 ...
分类:其他好文   时间:2020-06-07 14:27:39    阅读次数:141
V3 - What Can You Do? Teacher: GABRIELE
In this lesson you will learn to ask about skills. 课上内容(Lesson) "I'm a man of my word" 我是一个讲信用的人/ 我是一个说道做到的人 a street vendor illegal 非法 <--> legal 合法 ...
分类:其他好文   时间:2020-06-07 11:05:19    阅读次数:75
dockerfile编写
一、自定义镜像有两种方法: 1、docker commit 启动一个容器,增删改查,安装软件,修改配置文件等 ; 另存为一个新镜像 docker run -it docker.io/centos 启动一个容器 yum install -y vim net-tools ctrl+p+q 退出容器 do ...
分类:其他好文   时间:2020-06-06 18:45:09    阅读次数:54
14864条   上一页 1 ... 43 44 45 46 47 ... 1487 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!