Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python get file size in mb

import os
os.path.getsize("path/to/file") / (1024*1024)
Comment

PREVIOUS NEXT
Code Example
Python :: pandas save file to pickle 
Python :: draw a single pixel using pygame 
Python :: plt figsize 
Python :: python - show all columns / rows of a Pandas Dataframe 
Python :: ParserError: Error tokenizing data. C error: Expected 1 fields in line 87, saw 2 
Python :: pygame scale image python 
Python :: get external ip python 
Python :: jupyter notebook no password or token 
Python :: change django admin title 
Python :: django admin no such table user 
Python :: python spawn shell 
Python :: mac upgrade python to 3.8 
Python :: rename columns in python 
Python :: pandas version check in python 
Python :: sudo python3 -m pip install pyautogui 
Python :: sqlalchemy query bilter by current month 
Python :: Cannot mask with non-boolean array containing NA / NaN values 
Python :: python program to find first n prime numbers 
Python :: python read file to variable 
Python :: generate a list of numbers upto n 
Python :: how to capture a single photo with webcam opencv 
Python :: convert numpy to torch 
Python :: tensorflow check gpu 
Python :: get python directiory 
Python :: sklearn.utils.bunch to dataframe 
Python :: blender python set object to active by name 
Python :: Installing python cryptography 
Python :: random letter generator python 
Python :: how to add a image in tkinter 
Python :: installing django 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =