码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
PyQt的QString和python的string的区别
转载于http://blog.chinaunix.net/uid-200142-id-4018863.htmlpython的string和PyQt的QString的区别 python string和PyQt的QString的区别 以下在Python2.6和PyQt4.4.4 for Python2,...
分类:编程语言   时间:2015-04-17 13:37:05    阅读次数:257
20. Valid Parentheses
题目:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the corre...
分类:其他好文   时间:2015-04-17 13:33:47    阅读次数:82
Shell字符串
字符串是shell编程中最常用最有用的数据类型(除了数字和字符串,也没啥其它类型好用了),字符串可以用单引号,也可以用双引号,也可以不用引号。单双引号的区别跟PHP类似。单引号str='this is a string'单引号字符串的限制:单引号里的任何字符都会原样输出,单引号字符串中的变量是无效的...
分类:系统相关   时间:2015-04-17 13:25:52    阅读次数:146
MD5加密
/// /// ///////MD5加密 /// /// /// public static string MD5(string Sourcein) { MD5CryptoServiceProvider MD5CSP = new MD5Cr...
分类:其他好文   时间:2015-04-17 13:19:48    阅读次数:99
格式化数字字符串
格式说明符的语法对齐说明符 正数表示右对齐,负数表示左对齐。如果要表示的字符数比对齐说明符中指定的数少,会用空格填充;如果多了,就会被忽略掉。1 static void Main(string[] args)2 {3 var temp = 1...
分类:其他好文   时间:2015-04-17 13:11:50    阅读次数:149
MD5加密解密
using System.Security.Cryptography;using System.IO; using System.Text; ///MD5加密 public string MD5Encrypt(string pToEncrypt, string sKey...
分类:其他好文   时间:2015-04-17 13:11:07    阅读次数:107
字典 Key值转换为数组
public static string[] GetCategories() { Dictionary itemMap = new Dictionary(); int count = itemMap.Count; string[] keys = ne...
分类:编程语言   时间:2015-04-17 13:05:41    阅读次数:123
ASP.NET post数据到指定页面
/// /// ////post数据 /// /// /// /// /// public static string SendMsg(string fxPhone, string fxPassword, string toPhone, string m...
分类:Web程序   时间:2015-04-17 13:02:37    阅读次数:116
C# 浅拷贝与深拷贝
浅拷贝:给对象拷贝一份新的对象引用地址;(只是给一个对象多起了个名字,所以,当改变拷贝的某个属性的时候,原对象的对应属性亦会改变)。浅拷贝的定义—— 只对值类型(或string)类型分配新的内存地址;引用类型、以及引用类型的内部字段只是拷贝引用地址。深拷贝:给对象拷贝一份全新的对象。深拷贝的定义——...
分类:Windows程序   时间:2015-04-17 13:02:23    阅读次数:170
获取当前时间戳
/// /// 获取当前时间戳 /// /// 为真时获取10位时间戳,为假时获取13位时间戳. /// public static string getTimeStamp(bool bflag = tr...
分类:其他好文   时间:2015-04-17 13:01:09    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!