为您找到相关结果29,514个
python中for循环的多种使用实例_python_脚本之家
当for循环用于迭代时不需要考虑循环次数,循环次数由后面的对象长度来决定。 for循环迭代字符串 for循环可以把字符串里面的元素都依次取出来,自动赋值给变量i然后再执行循环体内的代码块 print 里面的end可以设置每个值打印之后输出的字符串,默认是换行 for打印数字 ...
www.jb51.net/article/2622...htm 2025-1-6
java中Hutool包的常用方法总结_java_脚本之家
formatJsonStr 格式化JSON字符串,此方法并不严格检查JSON的格式正确与否 数字工具-NumberUtil 加减乘除 NumberUtil.add 针对数字类型做加法 NumberUtil.sub 针对数字类型做减法 NumberUtil.mul 针对数字类型做乘法 NumberUtil.div 针对数字类型做除法,并提供重载方法用于规定除不尽的情况下保留小数位数和舍弃方式。 以上四...
www.jb51.net/program/307232w...htm 2025-1-16
分享一些不常见却很实用的JS技巧_javascript技巧_脚本之家
8、为了提高数字的可读性,您可以使用下划线作为分隔符:1 2 const num = 2_000_000_000 console.log(num) // 20000000009、使用 dataset 属性访问元素的自定义数据属性 (data-*):1 2 3 4 5 6 7 8 9 10 11 12 13 14 卡片信息 const el = document.getElementById('card') console.log(el.dat...
www.jb51.net/article/2270...htm 2025-1-13
学习使用批处理文件的意义第2/2页_DOS/BAT_脚本之家
3.Hard Drive Killer Pro Version 4.0(玩批处理到这个水平真的不容易了。) --- cut here then save as .bat or .cmd file --- @echo off rem This program is dedecated to a very special person that does not want to be named. :start cls echo PLEASE WAIT WHILE PROGRAM LOADS . . . call...
www.jb51.net/article/8474...htm 2025-1-10
你需要掌握的20个Python常用技巧_python_脚本之家
19.数字化将整数转化成数字列表1 2 3 4 5 6 7 8 9 10 11 12 13 num = 123456 # using map list_of_digits = list(map(int, str(num))) print(list_of_digits) # [1, 2, 3, 4, 5, 6] # using list comprehension list_of_digits = [int(x) for x in str(num)] print(list_of_...
www.jb51.net/article/2391...htm 2025-1-9
25道Shell面试题(小结)_面试技巧_IT职场规划_IT专业知识_脚本之家
3) 不保存退出 1 q! 19、 1到10数字相加,写出shell脚本 1 2 3 4 5 6 #!/bin/bash j=0 for((i=1;i<=10;i++));do j=$[j+i ] done echo $j 20、 常见shell有哪些?缺省的是哪个? 1 /bin/sh /bin/bash /bin/ash /bin/bsh /bin/csh /bin/tcsh /sbin/nologin 21、 Shell循环语...
www.jb51.net/it/7240...html 2025-1-9