“Obtenha o tamanho do arquivo python” Respostas de código

Tamanho do arquivo python

>>> import os
>>> b = os.path.getsize("/path/isa_005.mp3")
>>> b
2071611
DigitalBorder

Python Get Size do arquivo

import os

# get size in bytes
path = 'path/to/file.txt'
size = os.path.getsize(path)
The Nic

Programa Python para obter o tamanho do arquivo de um arquivo simples.

import os
filepath='file1.txt'
size=os.path.getsize(filepath)
print(str(size) + ' Bytes')
Man

Como verificar o tamanho de um arquivo em python

import os
the_file_that_you_Want_to_check_the_size = os.path.getsize("The file Name")
print(the_file_that_you_Want_to_check_the_size)
# Your result #
Defeated Dove

Python Get Size do arquivo

import os
os.path.getsize('C:\\Python27\\Lib\\genericpath.py')
Obedient Opossum

Obtenha o tamanho do arquivo python

>>> import os
>>> b = os.path.getsize("/path/isa_005.mp3")/ (1024*1024)
>>> b
Excited Echidna

Respostas semelhantes a “Obtenha o tamanho do arquivo python”

Perguntas semelhantes a “Obtenha o tamanho do arquivo python”

Mais respostas relacionadas para “Obtenha o tamanho do arquivo python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código