[Tutor] inquire

XIA Xiao-Qin XQ.Xia@ccsr.cam.ac.uk
Thu, 11 Jan 2001 15:11:44 +0000


--=====_97922590441=_
Content-Type: text/plain; charset="us-ascii"

Dear Sir/Madam,

Does python offer the function like the "&" in FoxPro? 
i.e. in foxpro, some code like following:

            a="I am a"
            b="a"
            print &b

may print the content of variable a.
Can one do like this in python?

Many Thanks,
Xia XQ


--=====_97922590441=_
Content-Type: text/html; charset="us-ascii"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content='"MSHTML 4.72.3612.1700"' name=GENERATOR>
<STYLE></STYLE>

</HEAD>
<BODY bgColor=#ffffff style="FONT-FAMILY: " text=#000000>
<DIV>Dear Sir/Madam,</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">Does python offer the function like 
the &quot;&amp;&quot; in FoxPro? </FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">i.e. </FONT>in foxpro, some code 
like following:</DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff"></FONT>&nbsp;</DIV>
<DIV><FONT 
style="BACKGROUND-COLOR: #ffffff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
a=&quot;I am a&quot;</FONT></DIV>
<DIV><FONT 
style="BACKGROUND-COLOR: #ffffff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
b=&quot;a&quot;</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff"></FONT><FONT 
style="BACKGROUND-COLOR: #ffffff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
print &amp;b</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff"></FONT><FONT 
style="BACKGROUND-COLOR: #ffffff"></FONT>&nbsp;</DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">may print the content of variable 
a.</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">Can one do like this in 
python?</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff"></FONT>&nbsp;</DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">Many Thanks,</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">Xia XQ</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff"></FONT>&nbsp;</DIV></BODY></HTML>


--=====_97922590441=_--