`
文章列表

Python OOP Detail

data attribute   方法  调用超类构造函数   重写方法  interface #Super 定义一个method函数以及在子类中期待一个动作的delegate class Super: def method(self): print('in Super.method') #Default behavior def delegate(self): self.action() #Expected to be defined #Inheritor 没有提供任何新的变 ...

Python OOP Basic

第一个简单的类 class FirstClass: #Define a class object def setdata(self, value): #Define class methods self.data = value #self is the instance def display(self): print(self.data) #self.data: per instance 测试结果:     继承 class Fi ...

Python Exceptions

exception object、raise、内建异常类  自定义异常、捕捉异常  传递异常(不带参数的raise)  不止一个except子句  用一个块捕捉两个异常、捕捉对象  else子句:try-except-else  try-except-else(except Exception version)  finally子句  异常和函数   

Python Functions

创建函数   文档字符串、__doc__   位置参数、关键字参数和默认值 收集参数*和** 作用域   全局变量   递归 函数式编程:map、filter、reduce Summary 
print,import 赋值 条件和条件语句:布尔值、bool函数、if、else、elif 嵌套代码块、相等运算符==、同一性运算符is、成员资格运算符in、字符串和序列比较、布尔运算符、断言 while、for、range

Python Dictionaries

dict函数   基本的字典操作 len(d)返回d中项(key-value)的数量 d[k]返回关联到键k上的值 d[k]=v将值v关联到键k上 del d[k]删除键为k的项 k in d检查d中是否有含有键为k的项   来看个简单的例子 databases = { "Oracle" : { "username" : "oracleapp", "password" : "oracleapp123" }, ...

Python Strings

字符串格式化 字符串常用方法:find、join、lower、title、replace、split、strip、translate Summary      
通用序列操作:索引、分片、步长   序列相加、乘法、in运算符、长度、最小值、最大值   基本的列表操作:元素赋值、删除元素、分片赋值   列表方法:append、count、extend、index、insert、pop、remove、reverse sort、高级排序 元组   Summary

Python The Basics

Hello World、数字、表达式 变量、语句、获取用户输入、函数、模块   字符串   input和raw_input的比较   dir()和help()  Summary  
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</mode ...
Principles behind the Agile Manifesto   We follow these principles: Our highest priority is to satisfy the customerthrough early and continuous deliveryof valuable software.   Welcome changing requirements, even late in development. Agile processes harness change for the customer's competi ...
Manifesto for Agile Software Development   We are uncovering better ways of developingsoftware by doing it and helping others do it.Through this work we have come to value: Individuals and interactions over processes and toolsWorking software over comprehensive documentationCustomer collabora ...
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</mode ...

MyBatis CRUD Operations

    博客分类:
  • ORM
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</mode ...

Spring MVC CRUD

1.Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ ...
Global site tag (gtag.js) - Google Analytics