1、重载构造函数和减法运算__init__,__sub__ #file
number.py class Number: def __init__(self,data): self.data = data def
__sub__(self,other): return Number(se...
分类:
编程语言 时间:
2014-07-22 23:15:36
阅读次数:
510
对《达芬奇密码(The Da Vinci
Code)》统计了各单词的出现次数。全书约12.5万字,出现了10240个单词,其中只有1559个单词出现了10次以上。详细结果在这里下载,可以用来背单词用。
分类:
其他好文 时间:
2014-07-22 23:15:15
阅读次数:
326
#-*- coding: cp936 -*- #首行加这个
代码里就可以加注释raw_input("Press Enter Exit") #最后一行加这个,可以直接点击脚本运行脚本l[a:b] = [c]
#即用右边的[c]完全替换a到b-1个元素http://www.cnblogs.com/zhe...
分类:
编程语言 时间:
2014-07-22 23:14:54
阅读次数:
369
1.新建webapplication,添加webForm拖拽两个TextBox,一个Button,Button单击事件中写File.AppendAllText("f:/a.txt",TextBox1.Text+":"+TextBox2.Text+"
");2.新建winform窗体,拖拽WebBro...
分类:
Web程序 时间:
2014-07-22 23:13:34
阅读次数:
343
Reverse Words in a
String题目链接:http://oj.leetcode.com/problems/reverse-words-in-a-string/ Given an
input string, reverse the string word by word. F...
分类:
其他好文 时间:
2014-07-22 23:13:32
阅读次数:
309
public class DoTXT { // 定义成员变量:路径,文件对象,临时变量
private String path; // 文件路径 private File f; private FileReader fr; // 所需文件流对象
private File...
分类:
其他好文 时间:
2014-07-22 23:13:15
阅读次数:
300
设置EditPlus的编码格式为UTF-8:
Tools——>Preferences——>File——>Default encoding, 选择编码格式为UTF-8
分类:
其他好文 时间:
2014-07-22 23:12:57
阅读次数:
526
public class ToLog { public static void
main(String[] args) throws Exception { //准备日志文件 File f = new File("log.txt");
if(!f.ex...
分类:
其他好文 时间:
2014-07-22 23:12:54
阅读次数:
300
Chapter3: The C in C++ (2)Bitwise
operators(1)The bitwise exclusive or, or xor (^) produces a one in the output
bit if one or the other input bit is a...
分类:
编程语言 时间:
2014-07-22 23:11:16
阅读次数:
618
转载请注明出处控制文件(Control
File)是Oracle的物理文件之一,它记录了数据库的物理结构(数据文件、日志文件等的名称和位置),数据库转载和打开都需要控制文件,还记录了日志序列号,检查点和日志历史信息,同步和恢复数据库都需要控制文件。控制文件包含以下信息:
数据名称 数据文件名称和位置...
分类:
数据库 时间:
2014-07-22 23:11:16
阅读次数:
474