示例2 #!/usr/bin/python #coding:utf8 import sys fd = sys.stdin data = fd.read() sys.stdout.write(data+"\n") print "你好". 文件對象的方法: f.read()
確定! 回上一頁