码迷,mamicode.com
首页 >  
搜索关键字:python 文件 目录    ( 567607个结果
shell脚本练习1——条件语句(if 、case语句的应用)
1.检查用户家目录中的 test.sh 文件是否存在,并且检查是否有执行权限 #!/bin/bash if [ -e ~/test.sh ];then echo "test.sh文件存在" if [ -x ~/test.sh ];then echo "test.sh文件有执行权限" else ech ...
分类:系统相关   时间:2021-07-19 16:31:26    阅读次数:0
忘记数据库密码,打开修改密码
用管理员权限打开cmd:输入:mysqld --skip-grant-tables 再打开一个命令窗口,进入数据库的bin目录下,写命令:mysql:cd E:\Program Files\MySQL\MySQL Server 5.5\bin 命令顺序:mysql >use mysql >updat ...
分类:数据库   时间:2021-07-19 16:29:47    阅读次数:0
VBS批量修改文件名
原图 修改后 '批量修改文件名.vbs Function GetScriptPath() GetScriptPath = Left(WScript.ScriptFullName, Len(WScript.ScriptFullName) - Len(WScript.ScriptName)) End F ...
分类:其他好文   时间:2021-07-19 16:29:20    阅读次数:0
FastAPI - most popular API framework in python
FastAPI https://fastapi.tiangolo.com/#performance FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based ...
分类:编程语言   时间:2021-07-16 17:45:01    阅读次数:0
C++ 递归遍历文件并计算MD5
递归遍历文件夹,对比文件md5 首先,需要引用 md5 的相关代码,参考这篇文章,防止链接内容被删除,这里再记录一次: md5.h #ifndef MD5_H #define MD5_H #include <string> #include <fstream> /* Type define */ t ...
分类:编程语言   时间:2021-07-16 17:44:14    阅读次数:0
C++ 获取 PE 文件的各种信息
首先感谢 cyxvc 老哥,他的代码可读性超高,精简有用以理解,我找这方面的资料好久了,这篇文章对我帮助很大。 参考代码: #include "stdafx.h" #include <Windows.h> extern void DirectoryString(DWORD dwIndex); int ...
分类:编程语言   时间:2021-07-16 17:42:56    阅读次数:0
基于AM335X,如何搭建优良的Linux开发环境(下)
接着上一篇文章的Linux开发环境搭建,文章中详细讲解了 VMware14.1.1虚拟机安装、基于虚拟机安装Ubuntu14.04.3操作系统、安装Ubuntu14.04.3操作系统、安装虚拟机工具、 设置虚拟机共享目录等步骤。 接下来,继续以创龙科技的TL335x-EVM(AM3352/AM335 ...
分类:系统相关   时间:2021-07-16 17:41:56    阅读次数:0
python 将目录下所有文件夹的绝对路径写到文件中
import os dirlist = os.listdir() #打开文件 fo = open("dirs.txt","w") #遍历 for dir in dirlist: #判断如果是文件夹 if os.path.isdir(dir): #写 file.write(str(os.path.ab ...
分类:编程语言   时间:2021-07-16 17:33:40    阅读次数:0
Windows常用Dos命令
1.打开CMD win键+R 2.windows常用Dos命令 #切换盘符 d/D: #查看当前目录 dir #切换目录 cd /d 盘符:/目录名 cd .. #清理屏幕 cls #退出终端 exit #查看ip ipconfig(/all) #ping ping 网址 #创建目录 md #创建文 ...
分类:Windows程序   时间:2021-07-16 17:33:26    阅读次数:0
hadoop系列之一问题锦集
1、启动过程中出现Configuration has multiple addresses that match local node's address. Please configure the system with dfs.nameservice.id and dfs.ha.namenode ...
分类:其他好文   时间:2021-07-16 17:32:09    阅读次数:0
567607条   上一页 1 ... 7 8 9 10 11 ... 56761 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!