这篇对应的是习题16,读写文件
# -*- coding: utf-8 -*-
#对文件更多操作复制A文件的内容到B文件
#from sys import argv
from os.path import exists
prompt = "> "
from_file = raw_input("please input the filename where you want to copy...
                            
                            
                                分类:
编程语言   时间:
2014-05-05 12:54:02   
                                阅读次数:
402
                             
                    
                        
                            
                            
                                这是一篇分享技巧的文章:myeclipse恢复误删文件和代码
[ 恢复误删文件 ]
今天在写代码的时候,不小心把一个包给删除了,然后这个包下所有的文件都没了,相信很多人都有类似的经历,
幸好myeclipse给我们提供了一个很好用的功能:
选中项目 -> Restore from Local History.. -> 界面如下图
勾选要恢复的文件,点击Restore就可以了,就算...
                            
                            
                                分类:
系统相关   时间:
2014-05-04 00:25:53   
                                阅读次数:
515
                             
                    
                        
                            
                            
                                If you have installed YouTrack from EXE 
Distribution, then the best way to change the database location is by specifying 
it via JVM property.Stop curr...
                            
                            
                                分类:
数据库   时间:
2014-05-03 23:30:08   
                                阅读次数:
505
                             
                    
                        
                            
                            
                                题目:
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (c...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 21:48:19   
                                阅读次数:
252
                             
                    
                        
                            
                            
                                A Star not a Tree?
Time Limit: 1000MS
 
Memory Limit: 65536K
Total Submissions: 3272
 
Accepted: 1664
Description
Luke wants to upgrade his home computer network from 10mbs...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 21:31:49   
                                阅读次数:
417
                             
                    
                        
                            
                            
                                1、能用DISTINCT的就不用GROUP BY 
  SELECT OrderID FROM Details WHERE UnitPrice > 10 GROUP BY OrderID 
  可改为:  SELECT DISTINCT OrderID FROM Details WHERE UnitPrice > 10 
2.能用UNION ALL就不要用UNION  
  UNION A...
                            
                            
                                分类:
数据库   时间:
2014-05-03 21:31:24   
                                阅读次数:
342
                             
                    
                        
                            
                            
                                BeautifulSoup 善于网页数据分析 ,但是 python for android : BeautifulSoup 有 bug ,
text = h4.a.text 只能取得 None,所以我写了function: getText()
 来fix this bug.
例如: 抓取CSDN极客头条内容  soup.py
import urllib2, re
from Beau...
                            
                            
                                分类:
移动开发   时间:
2014-05-03 17:33:08   
                                阅读次数:
427
                             
                    
                        
                            
                            
                                AcknowledgmentsNotationsContentsIntroduction
3D from imagesOverview
Projective geometry
Projective geometry
The projective planeProjective 3-spaceTransformationsConics and quadrics
The st...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 15:45:32   
                                阅读次数:
584
                             
                    
                        
                            
                            
                                BeautifulSoup 善于网页数据分析 
请参考:  http://www.crummy.com/software/BeautifulSoup
例如: 抓取CSDN首页极客头条内容  soup.py
import urllib2, re
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen("http://gee...
                            
                            
                                分类:
编程语言   时间:
2014-05-03 15:31:42   
                                阅读次数:
401
                             
                    
                        
                            
                            
                                #include
#include
#include
#include
#include
using namespace std;
#define N 20020
struct node{
	int from, to, dou, nex;
}edge[N];
int head[N], edgenum;
void add(int u, int v,int dou){
	node E={u,v,dou...
                            
                            
                                分类:
其他好文   时间:
2014-05-03 15:25:32   
                                阅读次数:
340