python: join print with previous printed line -


In Python (2.6) Is there a "Output" print output with the previous line of print output? The backwards comma syntax ( print x, ) is not working because most outputs should be desired in the new row. In fcs for fc: count = getCount (fc) print '% s record% s'% ('{0: & gt; 9}' format (count), FC) If the calculation [0] == '0': Remove (FC) print '== & gt; The current console output was deleted:

  CAX in AIA 3875 records ==> 3875 records were deleted in BBB record% s (% fc)   < P> CCC deleted 68675 records in Deed:   

Desired result:

  ccc ==> In the record of BBB 0 3875 records 3875 records ; CCK has removed 68675 records in Deed    

You are asking that a print statement is the previous line The new line from the end of this is not the answer.

But you can write:

  if count [0] == '0': deleted = '==> % S has been removed from '% s% s'% ('{0: & gt; 9}'. Format (Count), FC, Deleted).   

Comments