“OS” Respostas de código

OS

LINUX !!!!
moi_crn

OS

import os
total_size = 0
start_path = '.'  # To get size of current directory
for path, dirs, files in os.walk(start_path):
    for f in files:
        fp = os.path.join(path, f)
        total_size += os.path.getsize(fp)
print("Directory size: " + str(total_size))
Drab Deer

Respostas semelhantes a “OS”

Perguntas semelhantes a “OS”

Procure respostas de código populares por idioma

Procurar outros idiomas de código