Ray's playground

 

Using a C++-like iostream Syntax(Python cookbook 2-13)

Problem

You like the C++ approach to I/O, based on ostreams and manipulators (special objects that cause special effects on a stream when inserted in it) and want to use it in your Python programs.

Solution

IOManipulator

 

endl

 

OStream

 

Usage

Example

posted on 2009-02-27 23:20  Ray Z  阅读(290)  评论(0编辑  收藏  举报

导航