本篇介紹Python 中取得檔案大小os.path.getsize 的用法與範例。以下範例是在Python 3 環境下測試過。 ... print('%s = %d bytes' % (path, size)) ...
確定! 回上一頁