[问题] 关于 subprocess.check_output 的问题

楼主: pshuang (中山先生忠实信徒-我爱萝)   2023-11-03 16:59:00
关于 subprocess.check_output 的问题
程式码如下,请看
作者: ckc1ark (伪物)   2023-11-03 22:28:00
shell默认是/bin/sh 可以用executable参数指定/bin/bashhttps://stackoverflow.com/q/33784892
作者: lycantrope (阿宽)   2023-11-03 22:38:00
cmd = ["bash","-c", "echo -ne \x78\x0a"]
楼主: pshuang (中山先生忠实信徒-我爱萝)   2023-11-04 05:58:00
原来如此

Links booklink

Contact Us: admin [ a t ] ucptt.com