Python学习日志--文件读写

在编程过程当中常常须要文件读写,Python的文件读写要比Java简单的多。python 打开文件的集中方式:编程 # 1.只读 open("path/filename","r") # 2.只写 open("path/filename","w") # 3.追加 open("path/filename","a") # 读取整个文件 file = open("path/filename","r"
相关文章
相关标签/搜索