[python] view plaincopyprint?
01.#!/usr/bin/env python
02.
03.import os
04.import time
05.
06.def create_file_size(size):
07. size *= 1024 * 1024
08. print size
09. local_time = time.strftime("%Y%m%d%H%M%S", time.localtime())
10. file_name = str(local_time) + ".txt"
11. with open(file_name, 'w') as f:
12. note = 'Test File Contents: '
13. i = 0
14. fsize = 0
01.#!/usr/bin/env python
02.
03.import os
04.import time
05.
06.def create_file_size(size):
07. size *= 1024 * 1024
08. print size
09. local_time = time.strftime("%Y%m%d%H%M%S", time.localtime())
10. file_name = str(local_time) + ".txt"
11. with open(file_name, 'w') as f:
12. note = 'Test File Contents: '
13. i = 0
14. fsize = 0