该
subprocess库正在解释您的所有参数,包括
demo_oled_v01.py作为python的单个参数。这就是python抱怨无法找到具有该名称的文件的原因。尝试将其运行为:
p = subprocess.Popen(['python', 'demo_oled_v01.py', '--display','ssd1351', '--width', '128', '--height', '128', '--interface', 'spi','--gpio-data-command', '20'])
在此处查看有关Popen的更多信息。



