2779 views|4 replies

1w

Posts

25

Resources
The OP
 

How to get the size of a file [Copy link]

 The following code demonstrates how to get the size of a file in the file system
  1. import os info = os.stat('main.py') size = info[6]
复制代码


Latest reply

Yes  Details Published on 2018-8-31 12:05
 
 

1903

Posts

0

Resources
2
 
It's so simple.
 
 
 

1903

Posts

0

Resources
3
 
This is python
 
 
 

1w

Posts

25

Resources
4
 
micropython.
 
 
 

1903

Posts

0

Resources
5
 
Yes
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list