谁能告诉我该怎么做?
with open(filename) as f: while True: c = f.read(1) if not c: print "End of file" break print "Read a character:", c