首页 > TAG信息列表 > strinput

RichTextBox set color

https://q.cnblogs.com/q/49923/ public void RtbAppend(string strInput, Color fontColor) { int p1 = richTextBox1.TextLength; //取出未添加时的字符串长度。 richTextBox1.AppendText(strInput); //保留每行的所有颜色。 // rtb.Text

C#中调用CMD执行命令

public void ReNewHelper() { new Thread(() => { string strInput = "ipconfig/renew"; Process p1 = new Process(); //设置要启动的应用程序 p1.StartInfo.

python-练习-判断两个数字是否相等

输入:一行提交两个数字 输出:相等返回YES,否则返回NO 1 #!python 2 3 def func(): 4 try: 5 strinput = input() 6 7 #判断输入非空,为空结束 8 if strinput == '' or strinput.isspace(): 9 print('input is null') 10

C#一些实用的函数

1.DateTime 转为Unix的long的时间戳 long orderTime = order.AddTime.ToUnixTimeStamp("Milliseconds");long payTime = order.StartTime.Value.ToUnixTimeStamp("Milliseconds"); 2、获取客户端IP         /// <summary>        /// 获取调用方的IP地址        

C++ SHA256代码实现

前言说明sha1库是一种哈希算法,用以生成结果为160bit的数据摘要,即20个字节。sha256结果为256bit,即32个字节。摘要的意思是,抽象为任意大小的数据为固定长度数据,结果是由于全部原始数据经过计算得出,逆推则无法计算除准确结果。摘要的特性:单向性 映射收敛性 不可篡改性 标准可验证性由