new = old[:]Python老鸟都知道以上代码是什么意思。它复制列表old到new。它对于新手来说是种困惑而且应该避免使用这种方法。不幸的是[:]标记法被广泛使用,可能是Python程序员不知道更好的列表复制法吧。首先我们需要了解Python是如何管理对象和变量。Python没有C语言中的变...
分类:
编程语言 时间:
2014-07-10 12:52:46
阅读次数:
323
MyBatis 是支持普通 SQL 查询,存储过程和高级映射的优秀持久层框架。MyBatis 消除 了几乎所有的 JDBC 代码和参数的手工设置以及结果集的检索。MyBatis 使用简单的 XML 或注解用于配置和原始映射,将接口和 Java 的 POJOs(Plan Old Java Object...
分类:
其他好文 时间:
2014-07-10 00:39:15
阅读次数:
224
同步或者提交的时候出现问题提示The working copy needs to be upgradedsvn: Working copy 'E:\JAVA\Workspaces\uhr' is too old (format 10,created by Subversion 1.6)问题原因:项目...
分类:
其他好文 时间:
2014-07-09 23:53:25
阅读次数:
299
1.加头文件#include 2.在文件打开 CStdioFile file; CFileException exp;之后加上: char* old_locale=_strdup(setlocale(LC_CTYPE,NULL) ); setlocale( LC_CTYPE,"chs");3.在文件...
分类:
其他好文 时间:
2014-06-27 13:15:52
阅读次数:
442
??
http://catpad.net/michael/jvm/是一个开源的简易的JVM实现。它实现了大多数的JVM功能,实现简单,适合广大技术爱好者了解JVM的内部工作原理。可以参考《Inside the Java Virtual Machine》by
Bill Venners,本书对jvm结构,Java class的定义有详细的讲解。
本文介绍下其中的一些关键实现点:
类加...
分类:
其他好文 时间:
2014-06-27 08:27:48
阅读次数:
514
Today,it`s my first day to start a new lesson with c#!At first ,I want to study it just because java is a old language ,and run slower than c# many pe...
分类:
其他好文 时间:
2014-06-26 16:46:23
阅读次数:
191
11. Factorial 这个题同样非常简单,就是求一个数的阶乘的尾部有多少个0. 思路是有2*5才会出0,然后2肯定比5多,所以就是数N!中有多少个因子5. 关于如何数出因子5的个数中http://www.chinaunix.net/old_jh/23/926848.html这篇文章介绍的非常详...
分类:
编程语言 时间:
2014-06-24 14:16:07
阅读次数:
246
解决svn:This client is too old问题
1、下载官方的python文件
http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py
2、下载安装python,执行python文件时有用 ,下载地址:http://code.go...
分类:
其他好文 时间:
2014-06-22 18:36:10
阅读次数:
354
GETTING STARTED OPENFLOW OPENVSWITCH TUTORIAL LAB : SETUP For a more up to date tutorial as anything more then 6 months old is outdated in the world o...
分类:
其他好文 时间:
2014-06-21 14:52:12
阅读次数:
347
WSS logging database grows very fast and it cause the storage problem most of the time in sharepoint server 2010.To reduce the size of the logging dat...
分类:
数据库 时间:
2014-06-20 22:04:05
阅读次数:
333