> From: [EMAIL PROTECTED]> Subject: Tutor Digest, Vol 53, Issue 89> To: > [email protected]> Date: Fri, 25 Jul 2008 12:01:02 +0200> > Send Tutor mailing > list submissions to> [email protected]> > 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> [EMAIL PROTECTED]> > > You can reach the person managing the list at> [EMAIL PROTECTED]> > 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" > <[EMAIL PROTECTED]>> Subject: Re: [Tutor] Check for file in different dirs> > To: [email protected]> Message-ID:> <[EMAIL PROTECTED]>! > 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 - > [email protected]> 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/
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
