从python输入adb shell

deo*_*nix 1 python shell android adb

我正在尝试从python执行命令adb shell我正在使用Windows操作系统

在CMD上:

C:\Users\deounix>adb shell
shell@android:/ $ su root
su root
root@android:/ # reboot
Run Code Online (Sandbox Code Playgroud)

我在做的是:

import os

os.popen("adb shell & su root & reboot")
Run Code Online (Sandbox Code Playgroud)

但这不起作用

我该怎么做?

Sti*_*ffo 5

import os
os.system("adb shell su -c reboot")
Run Code Online (Sandbox Code Playgroud)