po = os.popen(cmd)
msg = po.buffer.read().decode('utf-8')
解决os.popen()读取乱码问题‘gbk‘ codec can‘t decode byte 0x80
于 2021-08-12 17:17:50 首次发布
po = os.popen(cmd)
msg = po.buffer.read().decode('utf-8')