[Tutor] Saving data
Alexandre Passos
Alexandre Passos" <atp@bahianet.com.br
Mon, 18 Oct 1999 20:50:25 -0200
This is a multi-part message in MIME format.
------=_NextPart_000_001F_01BF19AA.672CFEC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
How can I save some data achieved in some program into other file?
ex:
nm =3D raw_input("Name:")
age =3D input("Age:")
hob =3D raw_input("Favourite hobby:")
persnon =3D """Name:%s
Age:%d
Favourite Hobby: %s"""
...
how can I save some object on a separate file for future reference?
------=_NextPart_000_001F_01BF19AA.672CFEC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>How can I save some data achieved in =
some=20
program into other file?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>ex:<BR></FONT></DIV>
<DIV><FONT size=3D2>nm =3D raw_input("Name:")</FONT></DIV>
<DIV><FONT size=3D2>age =3D input("Age:")</FONT></DIV>
<DIV><FONT size=3D2>hob =3D raw_input("Favourite =
hobby:")</FONT></DIV>
<DIV><FONT size=3D2>persnon =3D """Name:%s</FONT></DIV>
<DIV><FONT size=3D2>Age:%d</FONT></DIV>
<DIV><FONT size=3D2>Favourite Hobby: %s"""</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>...</FONT></DIV>
<DIV><FONT size=3D2>how can I save some object on a separate file for =
future=20
reference?</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_001F_01BF19AA.672CFEC0--