小编Ram*_*mon的帖子

返回值x = os.system(..)

当我输入os.system("whoami")Python时,它以root身份返回root,但当我尝试将其分配给变量时,x = os.system("whoami")它将x的值设置为0.为什么?(:

python linux os.system

14
推荐指数
2
解决办法
8万
查看次数

标签 统计

linux ×1

os.system ×1

python ×1