摘要: 零、TLDR 已经将配置好环境打包上,ova格式文件,使用 VirtualBox 导入即可。 注意:每次开机运行 go.bat 配置环境变量。 DOS.ova https://pan.baidu.com/s/1f-eRsTvT7ZtoC4iaBbCB6A 一、工具 1. VirtualBox htt 阅读全文
posted @ 2019-11-26 13:26 iVechan 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 回首十年,屁的收获都没有,希望下个十年不会如此。 上一个偶像博客的,激励自己:https://www.byvoid.com/zhs/ 阅读全文
posted @ 2019-10-27 11:20 iVechan 阅读(153) 评论(1) 推荐(0) 编辑
摘要: - youcompleteme原话:On Ubuntu 16.04, Python support was not working due to enabling both Python2 and Python3. Read answer by chirinosky for workaround. 阅读全文
posted @ 2016-12-06 23:17 iVechan 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 1. 正确代码: 错误代码: 错误原因: 由于多了个分号.所以for循环体中实际执行的代码是 ; 这行空语句, if语句则变成了循环体外, 所以在调用strcmp中,参数word将永远为NULL. 阅读全文
posted @ 2016-07-12 10:35 iVechan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 原题: https://segmentfault.com/q/1010000005904259 问题: 倘若存在 L=[ [1,2,3],[4,5,6],[7,8,9]] 这样的列表,如何把合并成[1,2,3,4,5,6,7,8,9]呢? 最直接的方法(By:松林) 使用标准库中的itertools 阅读全文
posted @ 2016-07-08 09:36 iVechan 阅读(29616) 评论(0) 推荐(2) 编辑
摘要: 地址:http://pyzh.readthedocs.org/en/latest/the-python-yield-keyword-explained.html#yield译者:hit9原文:http://stackoverflow.com/questions/231767/the-python-y... 阅读全文
posted @ 2015-09-01 22:59 iVechan 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 具有以下特点:- 填满整个页面,没有空白空间- 能缩放图像- 保留图像尺寸比例- 图像居中- 不因图像原因产生滚动条- 更多地支持全部浏览器- 不使用类似FLash的东西![演示图片](https://css-tricks.com/wp-content/csstricks-uploads/fullp... 阅读全文
posted @ 2015-08-23 19:27 iVechan 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1.内置布尔类型 (Trueand False. 非零值可代表True,零值可以代表False。) 这里的零值和非零值我把它广泛理解,而不是像Java那样int=0 之类的 这里的零值包括:数值类型为0或0.0、空列表、空元组、空集合、空字典 ,而非零值自然与之相反。 0.0的情况要小心精度或四舍五入问题,例如0.0000000012.数值类型 python3开始,整数型相当于python2.0的long类型,但python好像只有1种整数型。 (python2.0的int类型受sys.maxint的限制和平台限制) 整数型是不受内存限制的。例如你可以用(100个3×200个5,若. 阅读全文
posted @ 2012-01-20 19:18 iVechan 阅读(421) 评论(0) 推荐(0) 编辑
摘要: private void setLookFeel() { try { // Set System L&F UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { System.out.println("Cannot set System look and feel. Default look and feel will be used."); } } 阅读全文
posted @ 2011-07-21 14:42 iVechan 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 刚刚遇到有一个项目是需要在突出ListView的某个表项,所以就想把字体变粗,改成红色1.先是前景色,这个比较好办,一行代码就解决了。ListView.Items[0].ForeColor = Color.Red; 2.然后就是把字体变粗,刚刚开始我打算用 Font.Bold = true; 没想到这个值是只读的,不能赋值。 于是就网上找一下,找到VB的源码是Item.Bold = true; 然后到C#看一下,没有这个属性不过已经能够确定表项是能变成粗体了. 于是就看下Item.Font 属性,是可以set的。(*^__^*) 嘻嘻这下好办了。Font f = new Font(Contro 阅读全文
posted @ 2011-07-16 13:41 iVechan 阅读(1307) 评论(0) 推荐(0) 编辑