摘要: for file.txt***********n=10;fileinfo=importdata('file.txt');for i=1:nfilename=sprintf('file_%d.txt',i);filePh = fopen(filename,'w');fprintf(filePh,'%s 阅读全文
posted @ 2019-02-18 20:26 kaiming_ai 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Goal: To generate =35= files named 'capitalsquiz1.txt', 'capitalsquiz2.txt'...'capitalsquiz35.txt'**************>>> for quizNum in range(35): quizFile 阅读全文
posted @ 2019-02-18 20:15 kaiming_ai 阅读(160) 评论(0) 推荐(0) 编辑
摘要: | \n | 换行 || \t | 制表符 || \ | 转义 || \\ | \ | the '%' operator is used to format a set of variables enclosed in a "tuple" ( a fixed size list)| %s | str 阅读全文
posted @ 2019-02-18 19:46 kaiming_ai 阅读(216) 评论(0) 推荐(0) 编辑
摘要: test test Table of Contents 1. Serial UDF on Windows OS 1 Serial UDF on Windows OS Note: Udf has to be compiled, can’t be interpolated Steps: launch F 阅读全文
posted @ 2019-02-18 09:40 kaiming_ai 阅读(297) 评论(0) 推荐(0) 编辑
摘要: file types: plaintext files, such as .txt .py Binary files, such as .docx, .pdf, iamges, spreadsheets, and executable programs(.exe) steps to read/wri 阅读全文
posted @ 2019-02-17 22:50 kaiming_ai 阅读(265) 评论(0) 推荐(0) 编辑
摘要: To lauch IDLE in the Current Woking Directory >>> usr/bin/idle3 Alt + n # next command Alt+p # previous command >>> import os # os module>>> os.getcwd 阅读全文
posted @ 2019-02-17 11:59 kaiming_ai 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.for loop example 1: sum of 1+2+...+10 ********** >>> sum=0 >>> for x in [1,2,3,4,5,6,7,8,9,10]: sum=sum+x >>> print(sum) ********** example 2: sum o 阅读全文
posted @ 2019-02-17 09:54 kaiming_ai 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: method 1 : use =avconv= package in Linux e.g. to convert images (v_1.png, v_2.png ...) to 'velocity.mp4' avconv -i v_%d.png -b:v 1000k velocity.mp4 to 阅读全文
posted @ 2019-01-23 16:36 kaiming_ai 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Goal: I want to write a program for this: In a folder I have =n= number of files; first read one file and perform some operation then store result in 阅读全文
posted @ 2019-01-23 14:37 kaiming_ai 阅读(285) 评论(0) 推荐(0) 编辑
摘要: #### import the simple module from the paraviewfrom paraview.simple import *#### disable automatic camera reset on 'Show'paraview.simple._DisableFirst 阅读全文
posted @ 2019-01-18 16:11 kaiming_ai 阅读(396) 评论(0) 推荐(0) 编辑