小编Abh*_*ran的帖子

TypeError:需要类似字节的对象,而不是subprocess.check_output中的'str'

我得到TypeError:需要一个类似字节的对象,而不是python3.5中以下代码行中的'str'.

path = os.getcwd().strip('/n')
Null,userprof = subprocess.check_output('set USERPROFILE', shell=True).split('=')
Run Code Online (Sandbox Code Playgroud)

python subprocess python-3.x

5
推荐指数
1
解决办法
4471
查看次数

标签 统计

python ×1

python-3.x ×1

subprocess ×1