代码示例:(标识:python_ref_file_readable)
python_ref_file_readable.py
f = open("demofile.txt", "r")

print(f.readable())
运行结果: