getsizeof的局限 python非内置数据类型的对象无法用sys.getsizeof()获得真实的大小,例: import networkx as nx import sys G = nx.Graph() l = [i for i in xrange(10000)] print "size of l:", sys.getsizeof(l) G.add_nodes_from(l) print "size of graph:", sys.getsizeof(G)
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> int main(){ setvbuf(stdout,NULL,_IONBF,0); char s[255]; int a[255]; //存放得到的整数 int i,length; int f(char *s,int *a); printf("Input the string:"); ge
数据库 date 字段问题 insert into WK_RE_LE (DACL_FILE_ID,DACL_GROUP_ID,BDCDYH,DACL_LENGTH,ISVALID,DACL_NAME,DACL_EXTENSION,CREATE_TIME) values('fc21e4ed-4b7a-4f34-a2b8-2702b5c09e4a','7bb97788-5e9c-4146-8699-fde28033b269','02328F00033401','2918721',1,'(
from math import sqrt import randomimport osfrom sklearn import cross_validation os.chdir("/*")c=[]filename=r'rating.txt'out_train=open(r'train.txt','w')out_test=open(r'test.txt','w')for line in open(filename): items=line.strip().split('|') c.ap