Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Vstatus():
- def _init_(Status):
- Status.countspeed == True
- Status.active == True
- Status.growingspeed == 0
- import time
- import os
- #Your storage is at risk of over-expansion. Please do not let this file run forever, as your storage will fill continuously.
- #This is for educational purposes only.
- while Vstatus.Status.countspeed == True:
- f = open('file.txt', 'a')
- f.write('W')
- fsize = os.stat('file.txt')
- Key1 = fsize
- time.sleep(1)
- Key2 = fsize
- Vstatus.Statuts.countspeed = False
- while Vstatus.Status.active == True:
- time.sleep(0.001)
- f = open('file.txt', 'a')
- f.write('W')
- fsize = os.stat('file.txt')
- print('size:' + fsize.st_size.__str__() + ' at a speed of ' + Vstatus.Status.growingspeed + 'bytes per second.')
Add Comment
Please, Sign In to add comment