我正在使用 python 3.7 在 pycharm 中运行以下代码。但出现此错误。
import subprocess subprocess.run('dir', shell=True)
错误消息:AttributeError:模块“子进程”没有属性“运行”
python subprocess python-3.x python-3.7
python ×1
python-3.7 ×1
python-3.x ×1
subprocess ×1