2021年1月15日

python os 模块使用 系统操作 | 文件操作 | 目录操作 | 路径 | 权限操作

摘要: OS模块常用详解 OS模块是python标准库中用于访问操作系统功能的模块,使用OS模块 提供的接口可以实现跨平台访问。 通用操作: 1.获取平台信息,环境变量或进程等信息 2.目录和文件的操作 3.判断操作 ​ 1.系统操作 import os # 获取系统的分隔符,Linux>>>"/" pri 阅读全文

posted @ 2021-01-15 17:20 进击的davis 阅读(339) 评论(0) 推荐(0)

linux查看系统端口使用情况命令netstat | lsof -i

摘要: 基于ubuntu 18.04版本。 ####列出所有端口情况 # netstat -nutlp / lsof -i:3306 ####查看端口使用情况 # netstat -nutlp | grep 8000 # -n:以ip:port显示,-tu:tcp/udp,显示listenning,-p:显 阅读全文

posted @ 2021-01-15 15:02 进击的davis 阅读(355) 评论(0) 推荐(0)

导航