买到新服务器的时候先查看系统版本 cat/etc/os-release cat/etc/redhat-release看装了多少包、rpm -qa |wc-l查看系统配置 内存 free -h 查看CPU lscpu 硬盘lsblk 不全:if有技术大牛then 评论 ...
分类:
其他好文 时间:
2020-07-01 12:15:42
阅读次数:
61
nvcc fatal : Host compiler targets unsupported OS 实际上表示的可能是编译器过新 ; cuda库不能认识出编译器; 我当时使用vs2019 vs2017去编译opencv430 + opnecv-contrib430 出现这样的问题; 实际上,利用vs ...
分类:
其他好文 时间:
2020-07-01 09:31:56
阅读次数:
187
中间件 下载中间件(Downloader Middlewares) 位于scrapy引擎和下载器之间的一层组件。 作用:批量拦截到整个工程中所有的请求和响应 - 拦截请求: - UA伪装:process_request - 代理IP:process_exception:return request ...
分类:
其他好文 时间:
2020-06-30 22:19:04
阅读次数:
96
#!/usr/bin/env python import sys import os import subprocess import logging from threading import Thread import plg.utils.androidutil as au import plg ...
分类:
其他好文 时间:
2020-06-30 20:28:07
阅读次数:
68
blog01 - python - 字符串类型转换 概述 python 类型转换 背景 使用 python 时, 遇到了需要 类型转换的场景 环境 os win10 python 3.8 1. python 类型转换 概述 python 类型转换 场景 数字转换 int 转 double 字符转换 ...
分类:
编程语言 时间:
2020-06-30 19:00:50
阅读次数:
67
1、验证码生成代码 import random import string import os.path from io import BytesIO from PIL import Image from PIL import ImageFilter from PIL.ImageDraw impor ...
分类:
其他好文 时间:
2020-06-30 00:54:25
阅读次数:
89
import os import shutil import time start_time = time.time() # 需要被复制的文件夹 old_path = r'C:\old_dir' new_path = r'C:\new_dir' all_list = os.listdir(old_p ...
分类:
编程语言 时间:
2020-06-29 22:38:13
阅读次数:
131
操作系统(科普章节) 目标 了解操作系统及作用 1. 操作系统(Operation System,OS) 操作系统作为接口的示意图 没有安装操作系统的计算机,通常被称为 裸机 如果想在 裸机 上运行自己所编写的程序,就必须用机器语言书写程序 如果计算机上安装了操作系统,就可以在操作系统上安装支持的高 ...
分类:
系统相关 时间:
2020-06-29 13:34:23
阅读次数:
70
import os pwd = os.getcwd() print("当前目录: " + pwd) father_path_method1 = os.path.dirname(pwd) print("当前目录的父目录_方式一: " + father_path_method1) separator = ...
分类:
其他好文 时间:
2020-06-29 11:28:09
阅读次数:
136
仅以博客形式记录linux所学,不足之处持续改进 在linux系统的,目录是以倒树状图的形式来展现,如下图 /目录下有各个文件目录,每个目录一般对应各种系统配置,但不是绝对的。我们可以进入文件目录修改相关配置。 /bin 所有用户使用的基本命令;不能关联至独立分区,OS启动即会用到的程序。存放二进制 ...
分类:
系统相关 时间:
2020-06-28 22:44:37
阅读次数:
72