Beispiel #1
0
Datei: tp5.py Projekt: joelcn/uni
def task1():
    # Task 1
    a = fileMK.stemText(t[0])
    m = re.findall("[ \(\)<>]([a-zA-Z]{4})[ \(\)<>]", a)
    if m:
        mDict = fileMK.unsortedDictFromWords(m)   
        p = outputPath + "task1"
        fileMK.writeTextToFile(str(sorted(mDict.keys())), p)