Python OS and pathlib module to get file size. Use os.path.getsize('file') and os.stat(file).st_size methods to get File size in KB and MB.
確定! 回上一頁