python中python中from os import open as _open,O_CREAT,O_EXCL,O_RDWR是什么意思

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 19:04:11
python中python中from os import open as _open,O_CREAT,O_EXCL,O_RDWR是什么意思

python中python中from os import open as _open,O_CREAT,O_EXCL,O_RDWR是什么意思
python中python中from os import open as _open,O_CREAT,O_EXCL,O_RDWR是什么意思

python中python中from os import open as _open,O_CREAT,O_EXCL,O_RDWR是什么意思
从 os module中引入 open 方法,
并将其伪命名成_open,O_CREAT,O_EXCL,O_RDWR
也就是说,可以使用 _open,O_CREAT,O_EXCL,O_RDWR 中的任意一个名字来代替open方法