阅读背景:

如何在Python中打印“\b”字符串?

来源:互联网 

In my compilers class, I decided to write my compiler in Python since I enjoy programming in Python, though I encountering an interesting issue with how characters are printed. The lexer I'm writing requires that strings containing the formfeed and backspace characters be printed to stdout in a very particular way: enclosed in double quotes, and printed as \f and \b, respectively. The closest I've gotten:In my compilers class, I decided to write my co




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

分享到: