摘要: 1.使用pip安装pyinstaller,(一次安装) pip install pyinstaller 2.打包 pyinstaller -F myfile.py 我的测试: 我的程序目录 pythons\ code1\ myfile.py pythonbin\ scripts\ pip.exe p 阅读全文
posted @ 2019-02-15 09:45 以函 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 自:https://www.cnblogs.com/hont/p/5002913.html 闲来无事时积累的一些Linq函数,有时间就更新。 需要注意python版本如果低于3.0不支持lambda,只能单独写函数传参,比较麻烦 1.FirstOrDefault: 返回1 2.Where: 返回筛选 阅读全文
posted @ 2019-02-14 16:02 以函 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 自:https://www.cnblogs.com/xisheng/p/7301245.html lambda函数的语法只包含一个语句,如下: lambda arg1,arg2,.....argn:expression(主要是看下面的例子)代码示例: # 大家注意观察上面的Python示例代码,f 阅读全文
posted @ 2019-02-14 15:58 以函 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/qq_32786873/article/details/70173265 https://blog.csdn.net/weixin_41972401/article/details/79885749 说明 这个页面列出了一些常用的命令行启动参数以及对 阅读全文
posted @ 2019-02-01 15:13 以函 阅读(2090) 评论(0) 推荐(0) 编辑
摘要: curl wget 不验证证书进行https请求 $ wget 'https://x.x.x.x/get_ips' --no-check-certificate $ curl 'https://x.x.x.x/get_ips' -k 自:https://blog.csdn.net/bytxl/art 阅读全文
posted @ 2019-01-09 22:47 以函 阅读(2473) 评论(0) 推荐(0) 编辑
摘要: 参考: https://jingyan.baidu.com/album/91f5db1b1d5cbe1c7e05e352.html?picindex=1 B4&C4CONCATENATE(B4,C4)PHONETIC(B4:B6)CONCAT(A1:F1&" ") //Ctrl+Shift+Ente 阅读全文
posted @ 2019-01-08 09:54 以函 阅读(3164) 评论(0) 推荐(0) 编辑
摘要: vim保存退出: wq //同义 :wq --> :x vim不保存退出: q! vim撤销操作:u vim恢复操作:ctrl+r vim的文件启始:1 vim的文件结束:$ vim查找:/字符串 (回车) 按n找下一个,N找上一个 vim命令<-->编辑: esc <--> i或o, o插入新空行 阅读全文
posted @ 2019-01-07 16:33 以函 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.sina.com.cn/s/blog_141f234870102w03x.html 在使用VS2013编译C++程序的时 候,每次修改工程中的某一个文件,点击“生成-仅用于项目-仅生成**”时,往往都是整个工程都需要重新编译一遍。最烦人的时候是当编译完了出错,修改了错误 阅读全文
posted @ 2018-12-22 16:19 以函 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 在写ef代码时,需要把两个model类型的,写成一个 Model1: ICategory, Model2: ICategory, 再去 void getList<T>() where T: ICategory { using (var ctx = new ConnDbContext()){ var 阅读全文
posted @ 2018-12-21 07:37 以函 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 自: https://blog.csdn.net/weixin_37390956/article/details/79947976 搬砖, /// <summary> /// 创建动态代理方法 /// </summary> /// <param name="typeBuilder">类型构造器</p 阅读全文
posted @ 2018-12-20 14:51 以函 阅读(1506) 评论(0) 推荐(0) 编辑
摘要: 最近看autofac, castle动态代理,看的,还不是很了解,搬砖。。。 经常见到的动态代理场景... 一、Emit概述 Emit,可以称为发出或者产生。在Framework中,与Emit相关的类基本都存在于System.Reflection.Emit命名空间下。可见Emit是作为反射的一个元素 阅读全文
posted @ 2018-12-20 14:32 以函 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 01 new Promise(function(resolve, reject){ //做一些异步操作 setTimeout(function(){ console.log('执行完成'); reject('随便什么数据'); }, 2000);}).catch(function(){console 阅读全文
posted @ 2018-12-20 11:19 以函 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 转,https://www.cnblogs.com/seebook/archive/2009/12/23/1630780.html 1, 字符串 转换为字节数组 时的区别。 JAVA: 当我们使用方法 getBytes() 转换为byte数组时 如: 使用UTF-8 时: String str="我 阅读全文
posted @ 2018-12-12 15:51 以函 阅读(920) 评论(0) 推荐(0) 编辑
摘要: ILDASM默认存在SuppressIldasmAttribute属性,当使用ILDASM反汇编的程序集包含SuppressIldasmAttribute属性时,会报错“受保护的模块 无法进行反汇编”,需要去掉ILDASM工具的SuppressIldasmAttribute属性 去掉Suppress 阅读全文
posted @ 2018-12-08 22:04 以函 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 最近抽空看下python,缩进的语法还挺不习惯,现在还好,, 装了个python3.6 用pip 包管理下载了tornado 搭下mvc,结果是mtv,,, 在windows环境下基于sublime text3的node.js开发环境搭建 https://www.cnblogs.com/cnblog 阅读全文
posted @ 2018-12-08 11:31 以函 阅读(129) 评论(0) 推荐(0) 编辑
摘要: eclispe建个java project, 使用jre-1.6 (jre-1.8不可以) 建个包,JavaUtilAj,建个类,AES,(aes的java代码) 工程=》导出,java jre 文件,选择AES这个类, 得到,aes.jre, 用,ikvm,/bin/ 命令行:ikvmc -tar 阅读全文
posted @ 2018-12-01 17:26 以函 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1.建立站点,2.(应用程序池标识为applicationPoolIdentify), 3.进站点的编辑权限,添加 IIS AppPool\应用程序池名 ,并设置可读写 4.访问测试, //备忘 ApplicationPoolIdentify 标识 ApplicationPoolIdentify标识 阅读全文
posted @ 2018-11-27 14:50 以函 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 测试: https://blog.csdn.net/yowrhihoil/article/details/78563554 四、总和分析 ArrayList始终比HashSet性能要高 HashSet每次add总要判断hashcode导致效率低 HashSet两种循环中iterator 方式不稳定, 阅读全文
posted @ 2018-10-27 09:04 以函 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 自,https://blog.csdn.net/alspwx/article/details/20799017 一、J2EE、J2SE、J2ME区别 J2EE——全称Java 2 Enterprise Edition,是Java的一种企业版,用于企业级应用开发。 J2SE——全称Java 2 Sta 阅读全文
posted @ 2018-10-27 09:04 以函 阅读(125) 评论(0) 推荐(0) 编辑
摘要: for(var item of list) for(var i in list) list.forEach() list.map() 阅读全文
posted @ 2018-10-27 08:55 以函 阅读(2183) 评论(0) 推荐(0) 编辑
摘要: orchard,cms 学习, 下载,Orchard-1.10.2.zip 目录:Orchard-1.10.2\ 工程:Orchard-1.10.2\Orchard.sln 命令行工具:Orchard-1.10.2\src\Orchard.Web\bin\Orchard.exe (它也是其中一个项目 阅读全文
posted @ 2018-10-27 08:54 以函 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 自: https://www.cnblogs.com/anyun/p/8260069.html ES6标准发布后,module成为标准,标准的使用是以export指令导出接口,以import引入模块,但是在我们一贯的node模块中,我们采用的是CommonJS规范,使用require引入模块,使用m 阅读全文
posted @ 2018-10-27 08:53 以函 阅读(139) 评论(0) 推荐(0) 编辑
摘要: vue主要用来实现前端模块化编程, 它的最终代码是一些序列化的js,简单的index.html访问入口,和一些image, vue的js使用es6来模块化设计, 为什么要这么做呢,我想主要是为了前端与后端交互变为纯数据,做分离,变成只有api的通讯 当然你也可以用其它方法来实现这个目的,不过vue应 阅读全文
posted @ 2018-10-27 08:53 以函 阅读(476) 评论(0) 推荐(0) 编辑
摘要: Javascript实现Linq查询方式 Linq是.net平台一个重要的技术,全称Language Integrated Query。通过构建快速查询语句,可快速从数据库或集合中筛选数据集、以查询数据库相同的方式操作内存数据。 在ECMAScript 5th以后的版本中,Javascript实现了 阅读全文
posted @ 2018-10-27 08:53 以函 阅读(220) 评论(0) 推荐(0) 编辑
摘要: var rows = [ { productNo: 'test1', productSku: 'a1' }, { productNo: 'test3', productSku: 'c0' }, { productNo: 'test2', productSku: 'c0' }, { productNo 阅读全文
posted @ 2018-10-27 08:52 以函 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 启动命令解释程序 Cmd.exe 的新范例。如果在不含参数的情况下使用,cmd 将显示操作系统的版本和版权信息。 语法 cmd [{/c | /k}] [/s] [/q] [/d] [{/a | /u}] [/t:FG] [/e:{on | off}] [/f:{on | off}] [/v:{on 阅读全文
posted @ 2018-10-12 09:17 以函 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 转自, https://www.jb51.net/html5/342451.html 以JSON编码格式提交表单数据是HTML5对WEB发展进化的又一大贡献,以前我们的HTML表单数据是通过key-value方式传输的服务器端,这种形式的传输对数据组织缺乏管理,形式十分原始。而新出现的JSON格式提 阅读全文
posted @ 2018-08-23 14:50 以函 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1. JAVA学习路线图 转自, https://www.cnblogs.com/biehongli/p/5754555.html 再看看 c# 的学习路线, 没有看到有这么系统的文章 ,额 2. 第四课(1)——MySQL体系结构 https://www.cnblogs.com/zhoubaoji 阅读全文
posted @ 2018-08-18 11:40 以函 阅读(91) 评论(0) 推荐(0) 编辑
摘要: productSkuMap _this.scanCdItems = new Map() _this.scanCdItems.delete(item); tmpCdItems.set(item[0],item[1]); if (tmpCdItems.has(item)) { for(var item 阅读全文
posted @ 2018-08-09 09:54 以函 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 这里指的是,三目运算,条件是布尔,结果,也是布尔,所以下面的,condition,trueValue,falseValue,都是结果为布尔的 condition ? trueValue : falseValue 转为, ( condition && trueValue ) || ( !conditi 阅读全文
posted @ 2018-07-27 14:01 以函 阅读(135) 评论(0) 推荐(0) 编辑