关闭

截断文件 truncate

379人阅读 评论(0) 收藏 举报
分类:
truncate(size=None)

Resize the stream to the given size in bytes (or the current position if size is not specified). The current stream position isn’t changed. This resizing can extend or reduce the current file size. In case of extension, the contents of the new file area depend on the platform (on most systems, additional bytes are zero-filled, on Windows they’re undetermined). The new file size is returned.

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:34817次
    • 积分:705
    • 等级:
    • 排名:千里之外
    • 原创:33篇
    • 转载:18篇
    • 译文:1篇
    • 评论:1条
    最新评论