Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 282 Bytes

python.md

File metadata and controls

13 lines (11 loc) · 282 Bytes
import subprocess
subprocess.call("rm -rf graph*", shell=True)

from collections import defaultdict

def nested_dict(n, type):
   if n == 1:
       return defaultdict(type)
   else:
       return defaultdict(lambda: nested_dict(n-1, type))
datas = nested_dict(4,str)