一、open()的函數(shù)原型 open(file, mode=‘r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True) 從官方文檔中我們可以看到open函數(shù)有很多的參數(shù),我們常用的是file,mode和encoding,對于其它的幾個(gè)參數(shù),平時(shí)不常用,也簡單介紹一下。
www.dbjr.com.cn/article/803...htm 2025-5-27