上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页
摘要: 让C#具有了弱语言类型的特性。编译器在编译的时候不再对类型进行检查,编译期默认dynamic对象支持你想要的任何特性。 例如: foreach (dynamic drv in douyinCollectingHotVideosComsList) { if (drv.Author.ToString() 阅读全文
posted @ 2020-12-23 16:55 ꧁执笔小白꧂ 阅读(110) 评论(0) 推荐(0)
摘要: pip installprotobuf pip install cprotobuf pip install pyprotobuf pip install -U protobuf 阅读全文
posted @ 2020-12-18 15:43 ꧁执笔小白꧂ 阅读(906) 评论(0) 推荐(0)
摘要: 1.VS2017安装python 2.python环境安装(centos与window10上安装) 阅读全文
posted @ 2020-12-18 13:14 ꧁执笔小白꧂ 阅读(110) 评论(0) 推荐(0)
摘要: 1、json: 一般的web项目中,最流行的主要还是json。因为浏览器对于json数据支持非常好,有很多内建的函数支持。 2、xml: 在webservice中应用最为广泛,但是相比于json,它的数据更加冗余,因为需要成对的闭合标签。json使用了键值对的方式,不仅压缩了一定的数据空间,同时也具 阅读全文
posted @ 2020-12-18 11:58 ꧁执笔小白꧂ 阅读(566) 评论(0) 推荐(0)
摘要: 一,部署环境及安装包 1.python3.7 —— python官网下载地址:https://www.python.org/downloads/ —— python安装教程(不要选择VS安装的python) 2.Python 包安装和管理工具pip —— https://pypi.python.or 阅读全文
posted @ 2020-12-18 11:33 ꧁执笔小白꧂ 阅读(474) 评论(0) 推荐(0)
摘要: 很多小伙伴对“跨线程或跨类”使用WPF或WinFrom页面的控件不太明白,奉上一段小案例供参考(下面为WPF代码,WinFrom同理): 注:在WPF或WinFrom中,UI元素只能由其主线程来操作,其他任何线程都不可以直接操作UI,可以使用Dispatcher.Invoke(同步操作)或Dispa 阅读全文
posted @ 2020-12-17 10:49 ꧁执笔小白꧂ 阅读(2608) 评论(0) 推荐(1)
摘要: 一、简单委托声明 // 第一种-委托事件 public delegate void ChangeTextBox(string txt); // 声明一个委托-在class(类)外 public static event ChangeTextBox ChangeTextBoxValue; // 定义一 阅读全文
posted @ 2020-12-16 17:26 ꧁执笔小白꧂ 阅读(115) 评论(0) 推荐(0)
摘要: 代码如下: /// <summary> /// 文件名-判断是否含有非法字符 /// </summary> public void CheckFileName(){ //^[\\/:*?\"<>|]*$中英文不带\/:*?"<>|等,下面我又添加了几种 Regex regex = new Regex 阅读全文
posted @ 2020-12-15 10:57 ꧁执笔小白꧂ 阅读(465) 评论(0) 推荐(0)
摘要: 使用前准备事项:  正版 Windows 7 Service Pack 1 64-bit 安装档案  Windows 系统与目标 U 盘需要至少 8GB 的可用空间 1. 在您的电脑上插入 U 盘。(因为此工具在制作过程中将会格式化 U 盘,请确 认已备份 U 盘内的所有档案。) 2. 执行 W 阅读全文
posted @ 2020-12-09 22:36 ꧁执笔小白꧂ 阅读(2604) 评论(0) 推荐(0)
摘要: 一,https协议: 1.github新建项目 2.下载项目 3.本地项目复制到下载目录下 4.提交,推送 成功后,就可以在这个目录下修改项目了。 二,SSH协议: 1.点击开始菜单TortoiseGit目录下的puttygen 2.点击generate 复制文本框里的公钥 3.在github用户s 阅读全文
posted @ 2020-12-07 14:13 ꧁执笔小白꧂ 阅读(302) 评论(0) 推荐(0)
摘要: 错误代码: log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: ..\logs\jeesite\jeesite.log (系统找不到指定的路径。) 权限问题 tomcat不要放到c盘 引用:https: 阅读全文
posted @ 2020-12-05 17:31 ꧁执笔小白꧂ 阅读(1452) 评论(0) 推荐(0)
摘要: 一,在线安装版: http://www.sufeinet.com/thread-2187-1-1.html https://blog.csdn.net/weixin_39704162/article/details/78621786 二,离线安装版: https://jhrs.com/2019/33 阅读全文
posted @ 2020-12-02 00:01 ꧁执笔小白꧂ 阅读(126) 评论(0) 推荐(0)
摘要: 方法一: //num:子集合数 //List:原集合 //listGroup:子集合的集合 List<List<string>> listGroup = new List<List<string>>(); listGroup = List.GroupBy(i => int.Parse(i) % nu 阅读全文
posted @ 2020-11-27 15:15 ꧁执笔小白꧂ 阅读(4110) 评论(1) 推荐(2)
摘要: https://blog.csdn.net/azhe5201314/article/details/88597334 阅读全文
posted @ 2020-11-27 13:27 ꧁执笔小白꧂ 阅读(410) 评论(0) 推荐(0)
摘要: 合并List 1 List<int> listA = new List<int> {1,2,3,5,7,9}; 2 List<int> listB = new List<int> {13,4,17,29,2}; 3 4 List<int> Result = listA.Union(listB).To 阅读全文
posted @ 2020-11-26 18:37 ꧁执笔小白꧂ 阅读(708) 评论(0) 推荐(0)
摘要: WPF中的Window.ShowDialog()打开的窗口中的按钮Close()事件 我经常会使用ShowDialog().Value;这个遇到实现下面的功能时,ShowDialog()出的窗体Close()时,并不能返回值。错误代码如下: 0 AddDataWay addDataWay = new 阅读全文
posted @ 2020-11-24 14:41 ꧁执笔小白꧂ 阅读(533) 评论(0) 推荐(0)
摘要: post方法 1 /// <summary> 2 /// post请求方法 3 /// </summary> 4 /// <param name="url"></param> 5 /// <param name="str"></param> 6 /// <returns></returns> 7 p 阅读全文
posted @ 2020-11-23 12:47 ꧁执笔小白꧂ 阅读(1876) 评论(0) 推荐(0)
摘要: 方法一(加入dll): using System.Runtime.InteropServices; #region/// <summary> /// 取exe文件绝对路径 /// </summary> /// <param name="hModule"></param> /// <param nam 阅读全文
posted @ 2020-11-20 16:04 ꧁执笔小白꧂ 阅读(312) 评论(0) 推荐(0)
摘要: WPF与WinForm获取单元格方式不同,需要as强制转换 单元格类型 1、WinForm string str = (string)dataGrid.Rows[0].Cells[0].Value; 2、WPF string str = (dataGrid.Columns[0].GetCellCon 阅读全文
posted @ 2020-11-20 15:53 ꧁执笔小白꧂ 阅读(130) 评论(0) 推荐(0)
摘要: 方法: 使用MD5或者SHA算法来对比要验证的两版文件 1、MD5信息摘要算法(英语:MD5 Message-Digest Algorithm): 一种被广泛使用的密码散列函数,可以产生出一个128位(16字节)的散列值(hash value),用于确保信息传输完整一致。1996年后该算法被证实存在 阅读全文
posted @ 2020-11-18 10:16 ꧁执笔小白꧂ 阅读(907) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 38 下一页