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
| NAMES = set() | |
| def replace(old, new): | |
| """Replace the first function argument. | |
| If the first function argument matches old it will be Replaced with new. | |
| """ | |
| # decorate the original function | |
| def decorate(func): |
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
| $ python main.py main.py standin.py | |
| -- Dokumentenanalyse -- | |
| Analysiere main.py | |
| Zeile: 0 Zeichen: 10 erste Zahl an Stelle 18 | |
| Zeile: 1 LEERZEILE | |
| Zeile: 2 LEERZEILE | |
| Zeile: 3 Zeichen: 61 Keine Zahl | |
| Zeile: 4 Zeichen: 9 Keine Zahl |
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
| # standin.py | |
| # python3.2 | |
| # -*- coding: utf-8 -*- | |
| def session(): | |
| """Speichert die Session in einer Liste""" | |
| session_input = input(">>> ") | |
| result = [] | |
| while session_input: |