摘要: #include <stdio.h> #include #include <direct.h> #include <io.h> using namespace std; int main() { char MAC[256] = "123"; char file_01[256]; sprintf_s( 阅读全文
posted @ 2021-06-24 09:43 江南王小帅 阅读(89) 评论(0) 推荐(0)
摘要: #include <stdio.h> ##include <stdlib.h> ##include <time.h> int main() { int n = 60; int i = 0; int t; //printf("等待的时间:"); //scanf_s("%d", &n); t = tim 阅读全文
posted @ 2021-06-24 09:39 江南王小帅 阅读(51) 评论(0) 推荐(0)
摘要: #include using namespace std; int main() { ifstream fin("abc.txt"); ofstream fout("xyz.txt",ios::app); char data; if (!fin || !fout) return 0; while ( 阅读全文
posted @ 2021-06-24 09:36 江南王小帅 阅读(329) 评论(0) 推荐(0)
摘要: #include <iostream> #include <sstream> //使用stringstream需要引入这个头文件 using namespace std; //模板函数:将string类型变量转换为常用的数值类型(此方法具有普遍适用性) template <class Type>Ty 阅读全文
posted @ 2021-06-24 09:34 江南王小帅 阅读(249) 评论(0) 推荐(0)
摘要: #include #include #include #include using namespace std; ; int main() { ifstream infile; infile.open("Level_offset.txt"); //将文件流对象与文件连接起来 assert(infil 阅读全文
posted @ 2021-06-24 09:33 江南王小帅 阅读(42) 评论(0) 推荐(0)
摘要: #include #include #include #include <Windows.h> #include <stdio.h> #include <direct.h> #include <io.h> using namespace std; int main(){ std::string pr 阅读全文
posted @ 2021-06-24 09:31 江南王小帅 阅读(118) 评论(0) 推荐(0)
摘要: #include<iostream>#include<fstream>#include<string>#include <Windows.h>#include <stdio.h>#include <stdlib.h>using namespace std; char file[256]; sprin 阅读全文
posted @ 2021-06-24 09:29 江南王小帅 阅读(153) 评论(0) 推荐(0)
摘要: #include<iostream>#include<fstream>#include<string>#include <Windows.h>#include <stdio.h>#include <stdlib.h>using namespace std; char MAC[256] = "1234 阅读全文
posted @ 2021-06-24 09:27 江南王小帅 阅读(36) 评论(0) 推荐(0)
摘要: #include <iostream>#include<ctime> using namespace std; int main(){ time_t tt = time(NULL); tm* t = localtime(&tt); printf("%d-%02d-%02d %02d:%02d:%02 阅读全文
posted @ 2021-06-24 09:12 江南王小帅 阅读(108) 评论(0) 推荐(0)
摘要: with open("SFPrintLabel.txt", "w+") as myfile: myfile.write(file_line_last01) myfile.write(long_info) myfile.close() 阅读全文
posted @ 2021-06-24 09:09 江南王小帅 阅读(59) 评论(0) 推荐(0)
摘要: #!/usr/bin/pythonimport csv NewSN = "" # find good SN 给出MAC,寻找对应的SNwith open("DIGI_MAC_28_5_2021_40units.csv", newline='') as csvfile: csv_reader = cs 阅读全文
posted @ 2021-06-24 09:06 江南王小帅 阅读(88) 评论(0) 推荐(0)
摘要: #!/usr/bin/python import csvNewSN = ""#read last line head datawith open('SFPrintLabel.txt',"r") as file: file_content = file.readlines() #把全文档读取为一个表, 阅读全文
posted @ 2021-06-24 08:51 江南王小帅 阅读(107) 评论(0) 推荐(0)
摘要: # coding:utf-8import codecsimport osimport os.path'''#重命名文件newlines = []fileOpen = codecs.open("SN_02.txt", "r", "UTF-8") # 打开以utf-8格式fileSave = codec 阅读全文
posted @ 2021-06-24 08:43 江南王小帅 阅读(135) 评论(0) 推荐(0)
摘要: #pragma once#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <string>#include <Windows.h>#include <fstream>#include <sstream>#include <signa 阅读全文
posted @ 2021-06-24 08:33 江南王小帅 阅读(127) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <Windows.h> #include <fstream> #include <sstream> #include <signal.h> #include <io.h> #include <vector> 阅读全文
posted @ 2021-06-24 08:13 江南王小帅 阅读(395) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <Windows.h> #include <fstream> #include <sstream> #include <signal.h> #include <io.h> #include <vector> 阅读全文
posted @ 2021-06-24 08:11 江南王小帅 阅读(261) 评论(0) 推荐(0)
摘要: #include<iostream>#include<fstream>#include<string>using namespace std; /* 向txt文本中写入一个字符串:若文件不存在,则新建一个文件;否则,直接输入内容*/ int main(){ ofstream os; //创建一个文件 阅读全文
posted @ 2021-06-24 08:09 江南王小帅 阅读(791) 评论(0) 推荐(0)