在 Azure git 管道脚本 (.yml) 中,我可以像这样设置 Python 任务
- task: PythonScript@0
displayName: "Run scripts"
inputs:
scriptSource: 'filePath'
scriptPath: 'myscript.py'
arguments: '$a $b $c'
但在任务完成之前它不会打印输出。通常我会打电话python -u myscript.py
,但没有选项可以将参数传递给 python 本身;它们只能传递给脚本。如何将输入设置为无缓冲?