阅读背景:

How to read Ctrl command characters from a file in Python

来源:互联网 

Right now I am trying to read and parse a file using Python 2. The creator of the file typed a bunch of lines in the terminal, with (Ctrl A)s within each line, and copied those lines into a text file. So the lines in the file look like "(something)^A(something)". When I use the readlines() function in python to read the file, those "^A" strings cannot be recognized. Right now I am trying to read and parse a file




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: