线程池处理异步任务队列 /// <author>cxg 2020-9-3</author> /// 支持d7以上版本,更低版本没有测试,支持跨OS unit tasks; interface uses {$IFDEF mswindows} Windows, {$ENDIF} {$IFDEF posi ...
分类:
编程语言 时间:
2020-09-16 12:43:31
阅读次数:
71
import os import numpy as np import matplotlib.pyplot as plt root = os.getcwd() list_data = [os.path.join(root, f) for f in os.listdir() if f.endswith ...
分类:
其他好文 时间:
2020-09-15 21:31:50
阅读次数:
55
''' from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor import time,random,os def task(name,n): print('%s%s is running' %(name,os.ge ...
分类:
编程语言 时间:
2020-09-12 21:45:01
阅读次数:
36
基于 OS 内核的数据传输有什么弊端 1、中断处理:当网络中大量数据包到来时,会产生频繁的硬件中断请求,这些硬件中断可以打断之前较低优先级的软中断或者系统调用的执行过程,如果这种打断频繁的话,将会产生较高的性能开销。 2、内存拷贝:正常情况下,一个网络数据包从网卡到应用程序需要经过如下的过程:数据从 ...
分类:
其他好文 时间:
2020-09-12 21:38:33
阅读次数:
80
yum源:[root@jack7-1yum.repos.d]#catali*[aliBase]name=aliBasebaseurl=https://mirrors.aliyun.com/centos/$releasever/os/$basearch/enabled=1gpgcheck=1gpgkey=https://mirrors.aliyun.com/centos/$releasever/os
分类:
其他好文 时间:
2020-09-10 22:45:35
阅读次数:
36
用Python复制文件的9个方法 Python 中有许多“开盖即食”的模块(比如 os,subprocess 和 shutil)以支持文件 I/O 操作。在这篇文章中,你将会看到一些用 Python 实现文件复制的特殊方法。下面我们开始学习这九种不同的方法来实现 Python 复制文件操作。 在开始 ...
分类:
编程语言 时间:
2020-09-10 22:41:43
阅读次数:
49
#!/usr/bin/env python import os import numpy as np import py7zr import shutil import pandas as pd import time import multiprocessing import re def fun ...
分类:
系统相关 时间:
2020-09-09 19:20:50
阅读次数:
50
ylbtech-Runoob-Python3:Python3 标准库概览 1.返回顶部 1、 Python3 标准库概览 操作系统接口 os模块提供了不少与操作系统相关联的函数。 >>> import os >>> os.getcwd() # 返回当前的工作目录 'C:\\Python34' >>> ...
分类:
编程语言 时间:
2020-09-08 21:03:38
阅读次数:
79
1 #获取某个文件夹下的所有代码总行数 2 import os 3 def GetAllPath(dirname): 4 result = [] 5 for maindir, subdir, file_name_list in os.walk(dirname): 6 for filename in ...
分类:
其他好文 时间:
2020-09-07 18:42:30
阅读次数:
44
import tensorflow as tf import os from sklearn import datasets import numpy as np # 加载数据集 """ 其中测试集的输入特征 x_test 和标签 y_test 可以像 x_train 和 y_train 一样直接从 ...
分类:
其他好文 时间:
2020-09-04 17:04:09
阅读次数:
60