package com.kpsh.myself;import java.io.File;import
java.io.FileInputStream;import java.util.List;import
javax.xml.parsers.DocumentBuilder;import javax...
分类:
编程语言 时间:
2014-07-22 23:15:39
阅读次数:
320
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
SET SHOWPLAN_ALL { ON | OFF }It will not
execute the TSQL statements.It cannot be specified inside a stored
procedure,must be the only statements in a...
分类:
数据库 时间:
2014-07-22 23:11:32
阅读次数:
646