Differences between revisions 4 and 5
Revision 4 as of 2008-04-28 13:29:40
Size: 155
Editor: anonymous
Comment:
Revision 5 as of 2008-04-28 13:30:49
Size: 161
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
{{{#!python
Line 2: Line 3:
Line 4: Line 4:
Line 6: Line 5:
Line 8: Line 6:
Line 10: Line 7:
Line 12: Line 8:
Line 14: Line 9:
}}}

   1 import os,sys
   2 datadir='Desktop/'
   3 files=os.listdir(datadir)
   4 size=0
   5 for file in files:
   6    size +=os.path.getsize(datadir+file)
   7 print size

LehreWiki: SiaExercisesLesson3LoesungSystem (last edited 2008-04-28 13:38:28 by NinaMaass)