Python入门之文件操做

操做文件的步骤 打开 在磁盘中找到文件的存储位置python 读写 无论是文字仍是声音仍是图像,最终在磁盘上都是以2进制的0,1表示,读写是读写0,1的组合web 关闭 打开文件 (Pytest) [student@room9pc01 untitled]$ cp /etc/passwd /tmp/mima #open 默认以读的方式打开,文件不存在则报错 >>> f = open('/tmp/mi
相关文章
相关标签/搜索