本文发表于本人博客。这次我来说说关于&跟&&的区别,大家都知道&是位运算符,而&&是逻辑运算符,看下面代码: public static void main(String[] args) throws Exception { int a = 1; int b =...
分类:
编程语言 时间:
2014-12-15 17:10:23
阅读次数:
217
1.快速统计行数(ctrl+Shift+(方向键向下))。bson数据类型留个影响public enum BsonType { Double = 0x01, String = 0x02, Document = 0x03, Array = 0x04, Binary = 0...
分类:
其他好文 时间:
2014-12-15 17:03:15
阅读次数:
178
1 public String exportExcel(String name, String name2, String name3, 2 String name4, String name5, HttpServletRequest request, 3 ...
分类:
编程语言 时间:
2014-12-15 17:00:42
阅读次数:
190
博客分类:JAVA相关 居然也碰到这个陷阱的问题了,查了下书,终于解决,大概讲解如下, 代码如下: Java代码 public static void main(String[] args) { int[] data = {1,2,3,4,5}; List ...
分类:
其他好文 时间:
2014-12-15 16:58:35
阅读次数:
189
byte[] by = Encoding.Default.GetBytes("000000"); by = new MD5CryptoServiceProvider().ComputeHash(by); string text1 = ""; ...
分类:
其他好文 时间:
2014-12-15 16:58:28
阅读次数:
137
#region Base64编码解码 /// /// Base64加密 /// /// 加密采用的编码方式 /// 待加密的明文 /// public static string EncodeBase64(Encoding encode, string source) ...
分类:
其他好文 时间:
2014-12-15 16:54:31
阅读次数:
166
//SHA1 static public string SHA1_Hash(string str_sha1_in) { SHA1 sha1 = new SHA1CryptoServiceProvider(); byte[]...
原文链接#include #include using namespace std;void main(){[cpp]view plaincopy////find函数返回类型size_typestrings("1a2b3c4d5e6f7g8h9i1a2b3c4d5e6f7g8ha9i");strin...
分类:
其他好文 时间:
2014-12-15 16:43:25
阅读次数:
146
因为平时爱好摄影,所以喜欢看看色影无忌论坛的获奖摄影作品,所以写了个小script用来抓取上面的获奖图片,亲自测试可以使用。# -*- coding: UTF-8 -*-#作者Rocky Chen
import re, urllib, sys, os, time, urllib2, cookielib, string
class Download:
def __init__(self...
分类:
编程语言 时间:
2014-12-15 15:33:32
阅读次数:
207
swift关于字符串的判断中 有前导,有后缀 两个方法,居然没有包含判断。
经过学习找了个简单的解决方法:
extension String {
func has(v:String)->Bool {
return self.componentsSeparatedByString(v).count > 1
}
}...
分类:
移动开发 时间:
2014-12-15 15:32:59
阅读次数:
164