全文搜索
标题搜索
全部时间
1小时内
1天内
1周内
1个月内
默认排序
按时间排序
为您找到相关结果167,801个

Perl中的控制结构学习笔记_perl_脚本之家

(5) 含义:为真时执行,表达式为执行条件. 三、条件语句unless 复制代码代码如下: unless(表达式){语句} 与if条件含义相反,执行语句除非表达式为真,为真时退出,表达式为退出条件. 四、循环语句while 复制代码代码如下: while(表达式){语句} (1) 表达式为真时执行,是执行的条件. (2) 必须设置条件有为假的可能,...
www.jb51.net/article/579...htm 2024-6-2

Kotlin开发中与if等价的takeIf与takeUnless详解_Android_脚本之家

一、takeIf与takeUnless简介 if差不多等价的是takeIf和takeUnless,为什么要使用这两个关键字? 为了简化代码!! 使用if语句实现代码比较繁琐一点,但使用if语句同样可以实现同样的效果。 简化代码如下: 1 2 3 4 5 6 7 8 9 fun CheckMyTakeIf(value :Boolean):Boolean = value fun main() { //使用了takeIf简化...
www.jb51.net/article/2734...htm 2024-6-2

Perl的基本语法

last unless ($i > 10);}Perl还有提供label(标记)的语法,也就是 goto 指令,不过有经验的programer并不喜欢用它,我也不建议大家使用,所以就此按下不讲。有兴趣的人请自行查阅。还有一点值得注意的是Perl没有提供像C语言一样的 switch 叙述,不过Perl的pattern match的功能非常强,所以我建议你直接用 if else ...
www.jb51.net/shouce/Pe...htm 2024-5-29

kotlin Standard中的内联函数示例详解_Android_脚本之家

takeIf函数根据lambda函数返回值返回的数据,为true返回调用者本身,否则返回null takeUnless函数的定义如下: 1 publicinline fun <T> T.takeUnless(predicate: (T) -> Boolean): T? =if(!predicate(this))thiselsenull 不难看出,takeUnless相对比takeIf只是在返回值调用predicate(this)进行了取反操作,takeUnless的...
www.jb51.net/article/1674...htm 2024-6-1

模式语法

a parenthesized subpattern (unless it is an assertion - see below) The general repetition quantifier specifies a minimum and maximum number of permitted matches, by giving the two numbers in curly brackets (braces), separated by a comma. The numbers must be less than 65536, and the first must...
www.jb51.net/shouce/php5/zh/referenc... 2024-5-10

Ruby简明教程之判断语句介绍_ruby_脚本之家

if修饰符和unless修饰符可以写在执行语句后面,例如,print "a is larger than b." if a>b,所以ruby是很灵活的。 "==="符号的意义,其在不同的场合可以代表不同的符号,若左边是数字或字符串时,则和"=="是一样的;在正则表达式的场合下则相当于"=~";在类的场合下,判断"==="右边的对象是否是类的实例 ...
www.jb51.net/article/514...htm 2024-5-20

进程状态ps -ef中的e、f含义讲解_linux shell_脚本之家

processes which do not have a controlling terminal, unless the -x option is also specified. -C Change the way the CPU percentage is calculated by using a ``raw'' CPU calculation that ignores ``resident'' time (this normally has no effect). ...
www.jb51.net/article/2668...htm 2024-6-2

XSS (Cross Site Scripting) Cheat Sheet

This only works in IE and Netscape 8.1+ in IE rendering engine mode. Notice that there is nothing on the page to show that there is included JavaScript. Note: With all of these remote style sheet examples they use the body tag, so it won't work unless there is some content on the ...
www.jb51.net/tools/x...htm 2024-5-30

SpringBoot中的@DependsOn注解详解_java_脚本之家

Using DependsOn at the class level has no effect unless component-scanning is being used. If a DependsOn-annotated class is declared via XML, DependsOn annotation metadata is ignored, and is respected instead. 使用说明 @DependsOn注解可以定义在类和方法上; 直接或者间接标注在带有@Component注解的类...
www.jb51.net/program/294199g...htm 2024-6-2

深入浅析SpringBoot中的自动装配_java_脚本之家

* {@link TomcatEmbeddedServletContainerFactory} (unless you have defined your own * {@link EmbeddedServletContainerFactory} bean). * * When using {@link SpringBootApplication}, the auto-configuration of the context is * automatically enabled and adding this annotation has therefore no additional...
www.jb51.net/article/1399...htm 2022-5-20