Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38575
| References | <CAJ2vgs7cPKtb3fv=heMtfV7nS-15G+4npRVCkJLqx-CAkrMgVQ@mail.gmail.com> <1670212.1goHRf2svO@mach-114-20> |
|---|---|
| Date | 2013-02-10 16:39 +0100 |
| Subject | Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 |
| From | Morten Engvoldsen <mortenengv@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1581.1360510748.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hi, Thanks for your suggestion. This is a great forum for Python. :) On Sun, Feb 10, 2013 at 4:12 PM, inq1ltd <inq1ltd@inqvista.com> wrote: > ** > > On Saturday, February 09, 2013 03:27:16 PM Morten Engvoldsen wrote: > > > Hi Team, > > > I Have saved my output in .doc file and want to format the output with > > > > > > *************Start the File ************************ > > > > > > Some data here > > > > > > > > > *******************End of File***************************** > > > > > > Can you let me know how can i do that using Python? > > > > > > Look up the textwrap module > > > > import the textwrap module. > > > > from the textwrap module you can > > import dedent, wrap, and fill > > > > These are great for formatting text. > > > > jd > > inqvista.com > > > > > > > > > > >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Any idea how i can format my output file with ********************Start file*********************** usinf Python 2.7 Morten Engvoldsen <mortenengv@gmail.com> - 2013-02-10 16:39 +0100
csiph-web