Created
January 9, 2021 17:24
-
-
Save carcigenicate/7ab17e7cb0baeed74489901374195ea4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def meta_data(): | |
| maxSize = 2**10 | |
| if not os.path.exists('sample.data'): | |
| with open('sample.data', 'wb+') as ssd: | |
| data = { | |
| 0: [], | |
| 1: {'.': None,} | |
| } | |
| data[1]['~'] = data[1] | |
| ssd.seek(0) | |
| ssd.write(b' ' * cls.maxSize) | |
| ssd.seek(0) | |
| ssd.write(pickle.dumps(cls.data)) | |
| meta_data() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment