上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: java中一般有三种变量:类变量,成员变量和局部变量。类变量1.下面先看类变量,看下面这个例子public class Demo6{ public String name; public int age; public static String sex="男"; publi... 阅读全文
posted @ 2015-07-09 00:07 李雷雷alexkn 阅读(8078) 评论(0) 推荐(0) 编辑
摘要: import java.util.*;public class Demo3 { public static void main(String args[]){ String str = "hello world I love python!"; //字符串长度 System.out.print... 阅读全文
posted @ 2015-07-08 15:13 李雷雷alexkn 阅读(216) 评论(0) 推荐(0) 编辑
摘要: //java类型转换public class Demo2 { public static void main(String[] args){ int num1 = 55; int num2 =77; String str3 = "12355588"; String str4 = "12345... 阅读全文
posted @ 2015-07-08 14:46 李雷雷alexkn 阅读(232) 评论(0) 推荐(0) 编辑
摘要: upcast例:public class Test{ public static void main(String[] args) { Cup aCup = new BrokenCup(); aCup.addWater(10); // method bind... 阅读全文
posted @ 2015-06-07 17:26 李雷雷alexkn 阅读(2837) 评论(0) 推荐(0) 编辑
摘要: 在数据结构那一块,搜索有顺序查找/二分查找/hash查找,而排序有冒泡排序/选择排序/插入排序/归并排序/快速排序。如果遇到数据量和数组排列方式不同,基于时间复杂度的考虑,可能需要用到混合算法。如果用C语言自己写,是一个很头疼且门槛很高的过程,python却用很简单的方式,让这类算法人人可用。 ... 阅读全文
posted @ 2015-04-28 11:52 李雷雷alexkn 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 一.下面先交代一下测试云主机cpu:root@alexknight:/tmp/webbench-1.5# cat /proc/cpuinfo |grep modelmodel : 69model name : Intel(R) Core(TM) i5-4260U CPU @ 1.... 阅读全文
posted @ 2015-04-11 00:02 李雷雷alexkn 阅读(2037) 评论(1) 推荐(0) 编辑
摘要: 虽然django适合从零开始构建一个项目,但有时候整合原有的数据库也在所难免,下面以django整合我的mysql作说明。mysql数据是我从京东上抓取的数据,数据表名为jd,演示如图下面将jd整合到django中,操作如下1.修改settings.pyroot@iZ28b5osxspZ:/home... 阅读全文
posted @ 2015-03-29 22:06 李雷雷alexkn 阅读(3680) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.linuxeye.com/324.htmlPython自动补全有vim编辑下和python交互模式下,下面分别介绍如何在这2种情况下实现Tab键自动补全。一、vim python自动补全插件:pydiction可以实现下面python代码的自动补全:简单python关键... 阅读全文
posted @ 2015-03-26 11:57 李雷雷alexkn 阅读(1747) 评论(0) 推荐(0) 编辑
摘要: 安装MySQLsudo apt-get install mysql-server这个应该很简单了,而且我觉得大家在安装方面也没什么太大问题,所以也就不多说了,下面我们来讲讲配置。配置MySQL注意,在Ubuntu下MySQL缺省是只允许本地访问的,如果你要其他机器也能够访问的话,那么需要改变/etc... 阅读全文
posted @ 2015-03-26 11:18 李雷雷alexkn 阅读(178) 评论(0) 推荐(1) 编辑
摘要: This document describes how to deploy kubernetes on multiple ubuntu nodes, including 1 master node and 3 minion nodes, and people uses this approach c... 阅读全文
posted @ 2015-03-22 11:24 李雷雷alexkn 阅读(1176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页