+ 2
Is the variable "text" of the type string ?
with open(filename) as f: text = f.read()
2 ответов
+ 4
https://docs.python.org/2/library/stdtypes.html#file-objects
file.read([size])
The bytes are returned as a string object.
+ 1
yeah , string of file's text.