3 Star 6 Fork 1

wy3552128 / Nmonpy-NonGUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
str.py 300 Bytes
一键复制 编辑 原始数据 按行查看 历史
wy3552128 提交于 2019-11-18 14:19 . test
#coding:utf-8
import re
command = "AAA,command,/usr/bin/topas_nmon -fTN -s 1 -c 120 -youtput_dir=//ametest -ystart_time=17:28:36,Jan01,2013"
if '-c' in command:
print(command.split(' ').index('-c'))
count = command.split(' ').index('-c')
print(command.split(' ')[count + 1])
Python
1
https://gitee.com/zhuquehxb/Nmonpy-NonGUI.git
git@gitee.com:zhuquehxb/Nmonpy-NonGUI.git
zhuquehxb
Nmonpy-NonGUI
Nmonpy-NonGUI
master

搜索帮助