Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我su通过 python 调用命令os.system("su")并且在进入 root 模式后,我希望 python 在这个新进入的 root/超级用户模式下执行命令列表。如何在不退出 root 模式的情况下获得过早的返回值?
su
os.system("su")