码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果)
Java中的==和equals区别
引言:从一个朋友的blog转过来的,里面解决了两个困扰我很久的问题。很有久旱逢甘霖的感觉。中软国际电子政务部Jeff Chi总结,转载请说明出处。概述:A.==可用于基本类型和引用类型:当用于基本类型时候,是比较值是否相同;当用于引用类型的时候,是比较对象是否相同。B.对于String a = “a...
分类:编程语言   时间:2014-06-11 11:48:14    阅读次数:371
java.IO
java IO 是以文件相对程序的流向定义的javaIO流可分为三类1、输入流,输出流2、字节流,字符流3、节点流,处理流(这里用到了装饰着模式)public class IOtest { public static void main(String[] args) throws Except...
分类:编程语言   时间:2014-06-11 11:41:53    阅读次数:371
得到属性文件信息
/** * 得到属性文件信息 * * @param key * @return */ public static String getPropertiesByKey(String key) { InputStream in=null; ...
分类:其他好文   时间:2014-06-11 11:38:39    阅读次数:215
日期方法大全
/** * 得到当前的时间 字符串型 */ public static String getNowTime(){ Date time=new Date(); DateFormat format =new SimpleDateFo...
分类:其他好文   时间:2014-06-11 11:32:08    阅读次数:247
发送短信
//get 发送短信 public static String send_sms(String mobile_phone, String msg) { String ret_str = ""; BufferedReader rd=null; try {...
分类:其他好文   时间:2014-06-11 11:31:29    阅读次数:216
[leetcode]Search Insert Position @ Python
原题地址:https://oj.leetcode.com/problems/search-insert-position/题意:Given a sorted array and a target value, return the index if the target is found. If n...
分类:编程语言   时间:2014-06-11 11:28:40    阅读次数:349
[leetcode]Plus One @ Python
原题地址:https://oj.leetcode.com/problems/plus-one/题意:Given a non-negative number represented as an array of digits, plus one to the number.The digits are...
分类:编程语言   时间:2014-06-11 11:25:27    阅读次数:304
查询短信的短信剩余条数
/** * 查询短信的短信剩余条数 * @return */ public static String getSmsCount() { String ret_str = ""; BufferedReader rd=null; t...
分类:其他好文   时间:2014-06-11 11:24:42    阅读次数:359
python列表推导式
原来这么长时间没写了,今天阅读《集体智慧编程》的时候,发现了python的一个功能,列表推导式。留个存[ 表达式 for 变量 in 列表] 或者[表达式 for 变量 in 列表 if 条件]例如:ll=[1,2,3,4,5,6,7,8,9,0]print (v*10 for v in ll if...
分类:编程语言   时间:2014-06-11 11:23:16    阅读次数:330
算术类型&确定编译环境的位数
算术类型:整型(integral type)char : 一个机器字节(1BYTE = 8BIT)bool: 1 BIT整型: int: 与编译环境相关(不是机器),32位的编辑环境则长度为32BIT,故可以使用sizeof(int)来得到编译器环境的位数(返回的是字节长度)short/long/....
分类:其他好文   时间:2014-06-11 11:20:39    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!