La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
186 B

import os
def filesize(file):
"""Return the filesize. Save in /tmp and delete it when done"""
file.seek(0, os.SEEK_END)
size = file.tell()
file.seek(0)
return size