- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode:Sudoku Solver (python)
Leetcode: Sudoku Solver Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one u
2014-12-23 14:31:34 273
原创 1002. A+B for Polynomials (25)
This time, you are supposed to find A+B where A and B are two polynomials. Input Each input file contains one test case. Each case occupies 2 lines, and each line contains the information of a p
2014-12-18 14:17:06 176
原创 1001. A+B Format (20)
Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Each input file cont
2014-12-18 13:12:46 158
原创 pring对hibernate的事物管理
[size=large]原帖: http://blog.csdn.net/javaloveiphone/article/details/8155340 把Hibernate用到的数据源Datasource,Hibernate的SessionFactory实例,事务管理器HibernateTransactionManager,都交给Spring管理。 一.事务的4个特性: 原子性:...
2014-10-15 22:48:51 96
原创 Python3.x和Python2.x的区别(转)
原网址:http://www.cnblogs.com/codingmylife/archive/2010/06/06/1752807.html 这个星期开始学习Python了,因为看的书都是基于Python2.x,而且我安装的是Python3.1,所以书上写的地方好多都不适用于Python3.1,特意在Google上search了一下3.x和2.x的区别。特此在自己的空间中记录一下,以备...
2014-05-13 11:42:22 58
原创 python 动态定义类属性
python 动态定义类属性 [code="python"] """ 调用模块 """ if __name__=='__main__': import person att= {'att1':1,'att2':100,'att3':10,'att4':2} p = person.person(att) print(p.__dict__) ...
2014-05-08 09:43:13 145
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人