In this case, read returns bytes, but you can't use readline .
在这种情况下,read会返回字节,但readline则不能用。
All servlet containers must provide a readline method on their input streams.
所有的servlet容器必须在它们的输入流上提供readline方法。
These factors make it impossible to implement even a simple readline method without polling.
这些因素使得没有轮询就不可能实现甚至是简单的readline方法。
The readline method, however, reads the specified number of characters and continues reading until the end of that line.
但是readline方法在读入指定数量的字符后,还会继续读取,直到行尾。
Doing so returns a buffered text file; read and readline return strings. (Remember that all strings in Python 3 are unicode.)
这么做会返回一个缓冲了的文本文件;read和readline会返回字符串(请注意,Python3内的所有字符串都是unicode)。
By using this knowledge, you can pass in a parameter to the read method or the readline method to control how many characters are read.
通过使用这个知识,可以向read或readline方法传递一个参数,控制读取的字符数。
Additional functions as well as how to customize these options using a readline init file (usually inputrc in your home directory) can be found in the man pages.
其余功能以及如何使用readlineinit文件(通常为主目录中的inputrc)定制选项等内容可以在手册页中找到。
The BufferedReader object has access to several useful methods, such as isatty, peek, raw, readinto, readline, readlines, seek, seekable, tell, writable, write, and writelines, to name a few.
BufferedReader对象可以访问很多有用的方法,比如isatty、peek、raw、readinto、readline、readlines、seek、seekable、tell、writable、write和writelines。
More extensive commands, such as going backward and forward by words, are controlled by the Readline library that supports both vi and emacs bindings by default.
更广泛的命令(例如按单词向前和向后移动)可以通过readline库来控制,该库在缺省情况下同时支持vi和emacs绑定。
More extensive commands, such as going backward and forward by words, are controlled by the Readline library that supports both vi and emacs bindings by default.
更广泛的命令(例如按单词向前和向后移动)可以通过readline库来控制,该库在缺省情况下同时支持vi和emacs绑定。
应用推荐