【发布时间】:2021-10-03 11:43:41
【问题描述】:
在this python code line 256 to 266
这个使用run in sarge
p = run(
cmd,
input=self.feeder,
async_=True,
stdout=self.stdout or Capture(timeout=0.1, buffer_size=1),
stderr=self.stderr or Capture(timeout=0.1, buffer_size=1),
cwd=self.cwd,
env=self.env,
shell=self.shell,
**run_args
)
我无法理解 OR 逻辑运算符 stdout=self.stdout or Capture(timeout=0.1, buffer_size=1)
this OR 参数中有两个对象?
【问题讨论】: