[Tutor] Tutor Digest, Vol 53, Issue 89

lee lucia seed19841985 at hotmail.com
Fri Jul 25 17:06:35 CEST 2008


> From: tutor-request at python.org> Subject: Tutor Digest, Vol 53, Issue 89> To: tutor at python.org> Date: Fri, 25 Jul 2008 12:01:02 +0200> > Send Tutor mailing list submissions to> tutor at python.org> > To subscribe or unsubscribe via the World Wide Web, visit> http://mail.python.org/mailman/listinfo/tutor> or, via email, send a message with subject or body 'help' to> tutor-request at python.org> > You can reach the person managing the list at> tutor-owner at python.org> > When replying, please edit your Subject line so it is more specific> than "Re: Contents of Tutor digest..."> > > Today's Topics:> > 1. Re: Check for file in different dirs (Monika Jisswel)> > > ----------------------------------------------------------------------> > Message: 1> Date: Fri, 25 Jul 2008 08:25:22 +0000> From: "Monika Jisswel" <monjissvel at googlemail.com>> Subject: Re: [Tutor] Check for file in different dirs> To: tutor at python.org> Message-ID:> <e2f191310807250125o70666a07s925525938b50c3f3 at mail.gmail.com>> Content-Type: text/plain; charset="iso-8859-1"> > >> > for f in file1 file2 file3 file4 file5:> > a = os.path.exists('/home/dir1/file.txt')> > b = os.path.exists('/home/dir2/file.txt')> > c = os.path.exists('/home/dir3/file.txt')> > if a and b and c:> > do ...> > elif a and b :> > do ...> > elif a :> > do ...> > elif b :> > do ...> > elif c :> > do ...> > else:> > #file doesn't exist> > do ...> >> -------------- next part --------------> An HTML attachment was scrubbed...> URL: <http://mail.python.org/pipermail/tutor/attachments/20080725/b339f43d/attachment-0001.htm>> > ------------------------------> > _______________________________________________> Tutor maillist - Tutor at python.org> http://mail.python.org/mailman/listinfo/tutor> > > End of Tutor Digest, Vol 53, Issue 89> *************************************
_________________________________________________________________
隨身的 Windows Live Messenger 和 Hotmail,不限時地掌握資訊盡在指間 — Windows Live for Mobile 
http://www.msn.com.tw/msnmobile/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080725/40769967/attachment.htm>


More information about the Tutor mailing list