FORTRAN like formatting
Einstein, Daniel R
daniel.einstein at pnl.gov
Fri Jul 8 14:09:20 EDT 2005
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
daniel.einstein at pnl.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050708/4bc90ed0/attachment.html>
More information about the Python-list
mailing list