在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
http://www.cnblogs.com/cnblogsfans/archive/2009/09/19/1569918.html http://www.cnblogs.com/cnblogsfans/archive/2009/09/17/1568804.html 二、读取文件
一、新建文件
文件模式 "r" :Read-only. Starts at beginning of file (default mode). "r+" :Read-write. Starts at beginning of file. "w" :Write-only. Truncates existing file to zero length or creates a new file for writing. "w+" :Read-write. Truncates existing file to zero length or creates a new file for reading and writing. "a" :Write-only. Starts at end of file if file exists; otherwise, creates a new file for writing. "a+" :Read-write. Starts at end of file if file exists; otherwise, creates a new file for reading and writing. "b" :(DOS/Windows only.) Binary file mode. May appear with any of the key letters listed above |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论