add info n zip

This commit is contained in:
Rohit Tanwar
2018-01-21 11:26:15 +05:30
parent 59fcc51872
commit 862327ceed
3 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ files = os.listdir('snippets')
codeRe = "```\s*python([\s\S]*?)```"
for file in files:
someFile = open("snippets/" + file)
print(file)
fileData = someFile.read()
someFile.close()
originalCode = re.search(codeRe,fileData).group(0)