码迷,mamicode.com
首页 >  
搜索关键字:for input string 0    ( 126666个结果
JAVA 左侧补0
注:该方法只能进行数值左侧补0,不能补充其他符号。 第一种: int youNumber = 1; // 0 代表前面补充0 // 3 代表长度为3 // d 代表参数为正数型 String str = String.format("%03d", youNumber); System.out.pri ...
分类:编程语言   时间:2021-06-03 18:16:15    阅读次数:0
C#调用数据库中的Procedure的方法
C#调用数据库中的Procedure的方法 public ExecutionResult CreateWIPSN(MOBaseInfo moBaseInfo) { ExecutionResult execRes; string sqlText; //private InfoLightDBTools ...
分类:数据库   时间:2021-06-03 18:15:04    阅读次数:0
格式化输出 %s、format、f
格式化输出 %s # 格式化输出 name = input('请输入你的姓名:') age = input('请输入你的年龄:') password = input('请输入你的密码:') msg=''' name=%s password=%s age=%s '''%(name,password,a ...
分类:其他好文   时间:2021-06-03 18:09:57    阅读次数:0
Python中操作文件
open()函数 简介 预想操作python中的文件(打开/创建/追加),必须使用python的内置函数:open() open函数常用参数有两个: 第一个实参,是文件的所在路径(若文件在python中,则写文件名称即可,若文件在电脑中,则需要填写文件的绝对路径,且\字符需要转义) 第二个实参,决定 ...
分类:编程语言   时间:2021-06-03 18:09:28    阅读次数:0
Java已知图片路径下载图片到本地
public static void main(String[] args) { FileOutputStream fos = null; BufferedInputStream bis = null; HttpURLConnection httpUrl = null; int size = 0; ...
分类:编程语言   时间:2021-06-03 18:04:25    阅读次数:0
js技术之根据name获取input的值
一.前端的代码 <p>Name: <input type='text', name = 'name'/></p> <p>Age: <input type = 'text' name ='age'/></p> <p>Sex: <label><input type = 'radio' name = 's ...
分类:Web程序   时间:2021-06-03 18:02:30    阅读次数:0
使用Lambda转换集合数据至新集合
测试 public static void main(String[] args) { // 将 pojoList 转换至 dtoList 中 List<Student01> dtoList = new ArrayList<>(); List<Student01> pojoList = new Ar ...
分类:其他好文   时间:2021-06-03 18:00:12    阅读次数:0
流程控制11-break、continue
1.break在任何循环语句的主体部分,均可以用break控制循环的流程,break用于强行退出循环,不执行循环中剩余的语句(break语句也在switch语句中使用) 2.continue语句在循环语句中,用于终止某次循环,即跳过循环体中未执行的语句,接着进行下一次是否执行循环的判定。 例: pu ...
分类:其他好文   时间:2021-06-03 17:44:26    阅读次数:0
程序打开一个文本文件,文件中添加内容文字
1、主体代码 #region [ 启动记事本 ] System.Diagnostics.Process Proc; try { // 启动记事本 Proc = new System.Diagnostics.Process(); Proc.StartInfo.FileName = "notepad.e ...
分类:其他好文   时间:2021-06-02 20:53:03    阅读次数:0
Hello World
新建一个java文件 文件后缀为.java Hello.java 编写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,world"); } } 编译javac java文件( ...
分类:其他好文   时间:2021-06-02 20:48:48    阅读次数:0
126666条   上一页 1 ... 34 35 36 37 38 ... 12667 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!