01 2021 档案

解决Windows路径太长的目录以及文件名超长删除的问题
摘要:因Windows文件夹有长度限制,在路径太深,长度达到600多个字符时,删除文件时出现报错“源文件名长度大于文件系统支持的长度。请尝试将其移动到具有较短路径名称的位置,或者在执行此操作前尝试将其重命名为较短的名称”,百度了很多方式或下载软件都无法删除,最后找到一个解决方法,下来在这里写出来。 使用d
3624
0
1
LVM扩容根分区
摘要:LVM扩容根分区 原/目录有100G,现将根目录增加至150G [root@proftp ~]# df -Th 文件系统 类型 容量 已用 可用 已用% 挂载点 /dev/mapper/centos-root xfs 92G 3.0G 89G 4% / devtmpfs devtmpfs 3.9G
360
0
0
Centos7 搭建prometheus+Grafana监控
摘要:https://baijiahao.baidu.com/s?id=1676883786156871051&wfr=spider&for=pc node scrape_configs 配置示例 scrape_configs: # The job name is added as a label `jo
200
0
0
python3 读取txt文件数据,绘制趋势图,matplotlib模块
摘要:python3 读取txt文件数据,绘制趋势图 test1.txt内容如下: 时间/min cpu使用率/% 内存使用率/% 01/12-17:06 0.01 7.61 01/12-17:07 0.03 7.61 01/12-17:08 0.3 7.61 01/12-17:09 0.7 7.61 0
2377
0
0
linux python3安装whl包时报错解决:is not a supported wheel on this platform
摘要:原因1 你下载安装的包不是当前平台所支持的 原因2 你下载的包,不符合你所在的平台的安装whl的名称规范,所以出错。比如当前我要安装的包是:pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl 但是在我的系统中使用如下命令安装: pip3 install py
4483
0
0
python3 列表转换为字符串
摘要:join将列表转换为字符串 list1 = ["张三","李四","王五"] a1 = ','.join(list1) print(a1) >>> 张三,李四,王五
1191
0
0
python3 ftplib模块连接FTP
摘要:from ftplib import FTP_TLS import os import re class MyFtp(FTP_TLS): """继承FTP类""" def dirs(self, *args): """my dirs""" self.encoding = 'GB18030' cmd =
695
0
0
Linux Access.conf安全配置
摘要:access.conf is the configuration file used to logins to the Linux or Unix systems. This file is locate at /etc/security/ path. With this file logins o
2094
0
1
python3 贪吃蛇小游戏
摘要:贪吃蛇 #!/usr/bin/env python import pygame,sys,time,random from pygame.locals import * # 定义颜色变量 redColour = pygame.Color(255,0,0) blackColour = pygame.Co
218
0
0
在安装python 第三方库时遇到【WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, st】问题
摘要:在命令执行窗输入: pip install Pyinstaller -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com (其中的Pyinstaller 是你需要下载的库或包名,根据自己需求自行更改即可
16967
0
1
点击右上角即可分享
微信分享提示
深色
回顶
展开