用户:
威武的潘达熊mIca查看:0 回复:2 评论:0 创建时间:2023-08-07T12:02:07
【作品展示】

【作品介绍】
有很多弹窗
【作品源代码】
import easygui
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
for __count in range(999):
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn
羊一刀while True:
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
easygui.msgbox('哈哈哈哈哈哈哈', '中毒了', '✔')
会更好
点赞0
评论
看看我的,
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <thread>
#include <cstdlib>
void createProcess(int processNum, const std::string& folderPath) {
std::string folderName = folderPath;
std::replace(folderName.begin(), folderName.end(), '\\', '/'); // �滻·���еķ�б��Ϊ��б��
std::string fileName;
std::ofstream file;
for (int i = 0; i < processNum; i++) {
// �������
std::stringstream ss;
ss << folderName << "/file" << i << ".txt";
fileName = ss.str();
// ���������ļ�
file.open(fileName);
if (!file.is_open()) {
std::cerr << "�������" << fileName << std::endl;
exit(1);
}
// ѭ��д���ַ���
while (true) {
if (!file << "0") {
std::cerr << "���ļ�д������ʱ������" << fileName << std::endl;
exit(1);
}
}
// �ر��ļ�
file.close();
}
}
int main() {
// ��ȡ喵U�Ľ�����
unsigned int processNum = std::thread::hardware_concurrency();
// ��ȡ�ļ��е�ַ
std::string folderPath;
std::cout << "�������ļ��е�ַ��";
std::getline(std::cin, folderPath);
// ������Ӧ�����Ľ���
createProcess(processNum, folderPath);
return 0;
}
之前用DEV-C++写的程序,然后到VScode里文件注释就损坏了
点赞0
评论