自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 python tutorial 学习笔记(七)Errors and Exceptions

try, except, raise,finally raise raise NameError,’HiThere’    raise NameError(‘HiThere’) raise Class,instance raise instance raise can be used to re-raise the exception directly. User-defined Exceptions: Should be derived from the Exception class.

2011-04-25 14:59:00 395

原创 python tutorial 学习笔记(六)class

class ClassName( SuperClass ) : A new name space is created, thus all assignments to local variables go into this new namespace. When a class definitition ends, a class object is created. attribute names: __doc__( the fist multil-line string ), __cl

2011-04-20 16:59:00 447

原创 python tutorial 学习笔记 (五) scope,namespace

Namespace A mapping from name to objects. Names in different namespaces have no relation at all. Most namespaces are currently implemented as Python dictionaries e.g.: the set of built-in names; global names in a module; local names in a function invocati

2011-04-20 15:01:00 1369

原创 python tutorial 学习笔记(四) Input and Output, 字符串的转换等

print object value in the interpreter shell: expression statment print keyword print a,b,c sys.stdout.write() string module transfer objects to string str() function: human readble repr() function: can be read by the interpreter str

2011-04-15 14:36:00 554

原创 Java的数据类型转换方法

数字之间的转换 (byte,short,char)--int--long--float—double 低级到高级, 自动转换 但是如果是要降低精度的转换,要加强制转换的标记 double a; int b = (int) a;// a 的小数部分会被完全省略 基本类型转换到String 用包装类:Int, Long。。。 ,然后调用toString()方法,包装类还有***Value()方法 和空字符串连接:“” + number 

2011-04-08 17:44:00 391

原创 基于类的编程语言的学习

java 在类的世界里,光光记住方法的名字是不够的。是要知道这个世界里有“谁”。做什么事情要找“人”去做。 但是阅读“类”的文件时,有时候太简单的东西懒得看。或者说太流水账似的,没有理论和解释在背后的东西让人懒得去看。 常常一个库要和相关的理论联合在一起看。在实际中需要解决些什么问题,解决方案的模型是什么样子。多少要了解相关的理论。

2011-04-07 17:35:00 423

原创 python tutorial 学习笔记(三)

module –> .py file import  module_name from module_name import * module_name.__name__ #returns the module name module can contain executable statments. They are executed only the first time the module is imported somewhere. __na

2011-04-01 18:14:00 448

原创 python tutorial 学习笔记(二) Sequence type

built-in functions: range() len(object) keyword in, return boolean filter(function,sequence) map(function,*sequence) reduce(function,sequence) enumerate(object) –> [(0,item0),(1,item1),…] zip(seq1,seq2,…) –> [ (seq1[0],seq2[0]), (seq1[1],seq2[1] ),

2011-04-01 15:58:00 461

原创 python tutorial 学习笔记(一)

built-in funcitons raw_input([String]) range(int,[int],[int]) keyword lambda: small anonymous function control flow: if,elif,else ( no switch in python) for x in a; for x in a[:]; it iterates aan array while break,continue pass Define Functions:

2011-04-01 13:57:00 415

翻译-基于会话的测试

翻译-基于会话的测试 原著 James Bach

2009-05-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除