码迷,mamicode.com
首页 > 编程语言 > 详细

[Python]sys.stdin.readline(), sys.stdout.write(), sys.stdin.write()

时间:2020-06-26 22:12:11      阅读:55      评论:0      收藏:0      [点我收藏+]

标签:std   div   col   line   over   pre   quick   print   read   

 

import sys
# print(help(sys.stdout))
sys.stdout.write("the quick brown fox jumps over the lazy dog.") #返回值是字符串长度
sys.stderr.write("to err is humane, to forgive divine") #err先输出
# print(help(sys.stdin))
result = sys.stdin.readline()
print(result)

 

[Python]sys.stdin.readline(), sys.stdout.write(), sys.stdin.write()

标签:std   div   col   line   over   pre   quick   print   read   

原文地址:https://www.cnblogs.com/profesor/p/13196278.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!