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

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