import subprocess
# 根据外部传入的lambda进行output处理,并可以设置超时时间
class ExecCmd:
@staticmethod
def get_output(cmd_str: str, func, timeout=3):
try:
result = s
import subprocess
# 根据外部传入的lambda进行output处理,并可以设置超时时间
class ExecCmd:
@staticmethod
def get_output(cmd_str: str, func, timeout=3):
try:
result = s