Title: FORTRAN like formatting

Hi,

Sorry for this, but I need to write ASCII from my Python to be read by FORTRAN and the formatting is very important. Is there any way of doing anything like:

write(*,'(3(" ",1pe20.12))') (variable)

In other words, I want three columns 20 spaces long, with 12 digits after the decimal and so on and so forth.

What I am really looking for is some general indication of how to do such formatting in Python.

Any help?

Dan


Daniel R Einstein, PhD
Biological Monitoring and Modeling
Pacific Northwest National Laboratory
P.O. Box 999; MSIN P7-59
Richland, WA 99352
Tel: 509/ 376-2924
Fax: 509/376-9064
[EMAIL PROTECTED]


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to