I want to replace n in subproccess"s stout with
. I tried the following, but it didn"t work, using python3
a=subproccess.Popen("ls -al",stdout=subproccess.PIPE,shell=Ture)
I used the following code first, but there was an error "str"does not support the buffer interface
.b=a.stdout.read().replace("\n","<br>")
then I tried the following command again, and there was no error, but the replacement was not successful
b=str(a.stdout.read()).replace("\n","<br>")