美文网首页
我们讲讲python的标准文件

我们讲讲python的标准文件

作者: junson | 来源:发表于2016-07-12 22:28 被阅读31次

    标准文件有哪些

    当我们运行一个可执行程序的时候就已经打开了三个文件

    • 标准输入文件 stdin
    • 标准输出文件 stdout
    • 标准错误文件 stderr
      在python里面,我们是通过sys模块引入的
      sys.stdin
      sys.stdout
      sys.stderr
      内建函数raw_input()就是从sys.stdin接受输入

    相关文章

      网友评论

          本文标题:我们讲讲python的标准文件

          本文链接:https://www.haomeiwen.com/subject/lijsjttx.html