标准文件有哪些
当我们运行一个可执行程序的时候就已经打开了三个文件
- 标准输入文件 stdin
- 标准输出文件 stdout
- 标准错误文件 stderr
在python里面,我们是通过sys模块引入的
sys.stdin
sys.stdout
sys.stderr
内建函数raw_input()就是从sys.stdin接受输入
当我们运行一个可执行程序的时候就已经打开了三个文件
本文标题:我们讲讲python的标准文件
本文链接:https://www.haomeiwen.com/subject/lijsjttx.html
网友评论