总的来说python的 magic method 主要是围绕一些类中形如 __xx__ 的样子的方法。、 1 构造和初始化 1.1 __new__ 用来创建类并返回这个类的实例。 1.2 __init__ 将传入的参数来初始化该实例。 1.3 __del__ 在对象生命周期结束的时候,该方法会被调用 ...
分类:
编程语言 时间:
2017-09-13 01:44:49
阅读次数:
185
frameset框架 frameset与body没法同时使用,frameset用来分割页面,frame在frameset用于引用其他网页 iframe在原来页面嵌入小窗口显示其他页面 frameborder,边线;scrolling,滚动条。如果设置高和宽为0,则不显示,但是在后台会存在这么一个页面 ...
分类:
Web程序 时间:
2017-09-13 01:34:58
阅读次数:
268
package com.bdqn.iterator; public interface MyIterator { //将游标指向第一个元素 void first(); //将游标指向下一个元素 void next(); //判断存在下一个元素 boolean hasNext(); boolean i ...
分类:
编程语言 时间:
2017-09-12 23:19:54
阅读次数:
409
Task Schedule Problem Description Our geometry princess XMM has stoped her study in computational geometry to concentrate on her newly opened factory. ...
分类:
其他好文 时间:
2017-09-12 23:16:28
阅读次数:
195
HQL的内连接查询 对于HQL内链接查询,查询的是两张表的数据,这两张表的数据首先是保存在数组之中,然后在将每一个数组保存在List集合之中进行返回 代码片段: 1 @Test 2 // 内连接 3 public void fun1() { 4 SessionFactory factory = nu ...
分类:
Web程序 时间:
2017-09-12 20:49:12
阅读次数:
279
pdfmerge 0.0.7 https://pypi.python.org/pypi/pdfmerge/0.0.7 pyPDF2 https://pypi.python.org/pypi/PyPDF2/1.26.0 安装 python3 -m pip install pdfmerge 使用 fro ...
分类:
编程语言 时间:
2017-09-12 01:22:04
阅读次数:
281
Time Limit: 1000 ms Memory Limit: 256 MB Description 给定一个由且仅由字符 'H' , 'T' 构成的字符串$S$. 给定一个最初为空的字符串$T$ , 每次随机地在$T$的末尾添加 'H' 或者 'T' . 问当$S$为$T$的后缀时, 在末尾添 ...
分类:
其他好文 时间:
2017-09-11 21:24:00
阅读次数:
173
1:代码如下: // 3.1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> using namespace std; void main() { int iInput; cout << "输入一个整数" << endl ...
分类:
编程语言 时间:
2017-09-11 21:08:44
阅读次数:
143
1:代码如下: // 2.12.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> using namespace std; void main() { int i=5,j=8,k=12,l=4,x1,x2; x1=i>j&& ...
分类:
编程语言 时间:
2017-09-11 18:12:52
阅读次数:
154
1002. [WZOI2011 S3] 周年纪念日 Problem 3 周年纪念日 (anniversary.pas/c/cpp) 背景 WZland即将迎来一个举国欢庆的日子—建国150亿周年纪念日,值此之际WZland有许多事情要准备…… 问题描述 WZland的国王决定举办一个晚会,这次晚会要 ...
分类:
其他好文 时间:
2017-09-11 16:22:55
阅读次数:
229