cant get rid of trailing \n when reading variable from file in python3 script

前端 未结 0 1609
长情又很酷
长情又很酷 2021-01-30 02:37

I\'ve tried a few things but I cant get rid of \\n when I print searchterm variable

1.

os.system(r"grep -R \'title\' tmp2 | awk -F \'\\"\' \'{pri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题