clc; clear all; num = 10; for i = 1 : num IM = imread(sprintf('E:\\TEST\\PtzTEST2015-8-9\\image1280x720\\morning\\0-1\\X\\%03d-1.jpg', i)); eval(sprintf('IM%d = IM;', i)); end str = 'save data.mat'; for i = 1 : num str = sprintf('%s IM%d ', str, i);
import os os.chdir("C:/") path = os.getcwd() print(path) f = open("sql.csv") # print(f.read()) f.seek(0) lst = [] n = 0 for line in f.readlines(): if n > 0: fullname = line.rsplit('/', 1) #从右侧开始以第一个"/"为分隔符将字符串分割为两端,保存为2元素列
#coding=utf-8print 1#初始化文件crash_log.log with open('e:/1/crash_log.log','w')as f: f.close() def fw(self): print with open('e:/1/monkey_log.txt','r')as f1 , open('e:/1/crash_log.log','a+') as f2: #设置循环读取每一行,判断过滤 while True: line=f1.readline() if '// Mo
using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebAPIServer.Models { [Serializable] public class Product { publi