/// 原路徑 /// 目標路徑 private void CopyFile(string sources, string dest) { if (Directory.Exists(sources)) ...
可以识别字符串中占位符的函数Console.WriteLine()和string.Format() public static void Main() { int a = 5; string b = "6"; string c = "{0}和{1}"; Console.WriteLin...
public static void main(String[] args){ Map map = new HashMap(); map.put("id1", "wang"); map.put("id2", "sheng"); //方法一 Set set = map.keySet(); for .....
分类:
编程语言 时间:
2015-07-10 00:22:07
阅读次数:
178
首先说明 我是安卓4.0以上的版本,这个时候直接用网上的代码会报错的,先赋上网上的普遍代码 1 String uri = "http://url"; 2 HttpGet httpGet = new HttpGet(uri); 3 Log.e("zllmsg","new httpGet"); 4 tr...
分类:
移动开发 时间:
2015-07-10 00:18:02
阅读次数:
210
一、所有数据类型的常量都看作对象。(一)、JS自带的数据类型怎样创建对象?number、String这些基本类型的值,23、"abc"等常量本身就是对象。Date类型:通过一个构造函数创建对象,new Date(2015,7,8)(二)、用户怎样创建自定义的对象?1.通过var o = new Ob...
分类:
Web程序 时间:
2015-07-10 00:13:02
阅读次数:
185
For a given chemical formula represented by a string, count the number of atoms of each element contained in the molecule and return an object. 1 wate...
分类:
其他好文 时间:
2015-07-10 00:11:30
阅读次数:
152
class CTools{public: CTools(void);public: ~CTools(void);public: static std::string UNICODE_to_UTF8(const CString& unicodeString); static C...
分类:
其他好文 时间:
2015-07-10 00:08:42
阅读次数:
163
手机号排序 Console.WriteLine("请输入手机号的个数:"); int a = Convert.ToInt32(Console.ReadLine()); string[] sj = new string[a]; for ...
分类:
移动开发 时间:
2015-07-10 00:07:40
阅读次数:
148
在Swift中通过调用OC的CommonCrypto库可以很方便的实现String字符串转换为sha1。 在一个swift项目中,需要使用桥接头文件(Bridging header)的方式来引入一个OC库,才能调用OC中的内容。 本文也将作为Swift项目中...
分类:
编程语言 时间:
2015-07-09 23:01:27
阅读次数:
424
get请求:#regionget请求
///<summary>
///get请求
///</summary>
///<paramname="Url">请求地址</param>
///<paramname="postDataStr">请求参数</param>
///<returns></returns>
publicstaticstringHttpGet(stringUrl,string..