摘要: # -*- coding: utf-8 -*-"""Created on Wed Mar 26 16:14:05 2014@author: lxx"""# -*- coding: utf-8 -*-"""Created on Tue Mar 25 13:06:27 2014@author: lxx"""# -*- coding: utf-8 -*-"""Created on Mon Mar 24 15:38:06 2014@author: lxx 阅读全文
posted @ 2014-03-27 09:40 黑仔啊哈 阅读(191) 评论(0) 推荐(0)
摘要: 2014-03-27# -*- coding: utf-8 -*-"""Created on Tue Mar 25 13:06:27 2014@author: lxx"""# -*- coding: utf-8 -*-"""Created on Mon Mar 24 15:38:06 2014@author: lxx"""# -*- coding: utf-8 -*-"""Created on Mon Mar 24 10:32:59 2014@a 阅读全文
posted @ 2014-03-27 09:06 黑仔啊哈 阅读(307) 评论(0) 推荐(0)
摘要: 1 #读取类文件。调用类 2 from Paths_info import Paths_info 3 import string 4 t=Paths_info() 5 d=t.__dict__ 6 7 8 #def fan(dict): 9 f=open("ModelInfo.txt","r")10 l=open("modelInfo1.txt","w") 11 for eachline in f:12 eachline = eachline.strip()13 eachline = eachline.split( 阅读全文
posted @ 2014-01-20 16:17 黑仔啊哈 阅读(134) 评论(0) 推荐(0)
摘要: from geometry_info import geometry_infof=open("AD678_ci.txt","r")t=geometry_info()import stringd=t.__dict__ for eachline in f: eachline = eachline.strip() eachline = eachline.split("\t") df=eachline print df break for eachline in f: eachline = eachline.strip() e... 阅读全文
posted @ 2014-01-20 16:16 黑仔啊哈 阅读(131) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*-"""Created on Fri Jan 17 09:01:01 2014@author: xiaoxia"""# -*- coding: utf-8 -*-"""Created on Wed Jan 15 10:14:43 2014@author: xiaoxia"""import cv2 #将数据存为小图片 def fan() : f=open("picture.txt","r") l 阅读全文
posted @ 2014-01-17 15:39 黑仔啊哈 阅读(225) 评论(0) 推荐(0)
摘要: 1 import cv2 2 import numpy as np 3 def fan() : 4 f=open("picture.txt","r") 5 a = [] 6 b = [] 7 for eachline in f: 8 eachline = eachline.strip() 9 eachline = eachline.split(" ") 10 for i in eachline: 11 i = str(i)12 ... 阅读全文
posted @ 2014-01-15 15:23 黑仔啊哈 阅读(1774) 评论(0) 推荐(0)
摘要: import cv2 #将数据存为小图片def fan() : f=open("picture.txt","r") a = [] b = [] for eachline in f: eachline = eachline.strip() eachline = eachline.split(" ") for i in eachline: i = str(i) b.append(i) if len(b) == 4: ... 阅读全文
posted @ 2014-01-15 15:17 黑仔啊哈 阅读(599) 评论(0) 推荐(0)
摘要: import stringimport cv2f=open("Data.txt","r")a = []b = []for eachline in f: eachline = eachline.strip() eachline = eachline.split(" ") for i in eachline: i = string.atof(i) i = str(i) b.append(i) if len(b) == 4: a.append(b) b = []... 阅读全文
posted @ 2014-01-14 11:53 黑仔啊哈 阅读(304) 评论(0) 推荐(0)
摘要: 1 # -*- coding: utf-8 -*- 2 """ 3 Created on Thu Jan 09 10:57:52 2014 4 5 @author: wendy 6 """ 7 8 #f=open("Data.txt","r") 9 #x=f.read()10 #print x11 12 import string13 f=open("Data.txt","r")14 for Eachline in f:15 Eachline=Eachli 阅读全文
posted @ 2014-01-14 11:48 黑仔啊哈 阅读(253) 评论(0) 推荐(0)
摘要: #include int main (void){const int rows=6;int CHARS; int row; char ch;for(row=0;row='A';ch--) printf("%c",ch); printf("\n"); } return 0;}原来两个FOR是可以并用的2013-08-09 阅读全文
posted @ 2013-08-09 01:56 黑仔啊哈 阅读(144) 评论(0) 推荐(0)