task 6 and 7

master
Eggert Jung 5 years ago
parent 755488dc5f
commit 1b192ad7d2

@ -20,4 +20,11 @@ class Exercise00:
return "{2} - {1} - {0}"
if mode == "dict":
return "x, y = ({x}, {y})"
return "x, y = ({x:.1f}, {y:.04f})"
def listfiles(self, directory, filetype=''):
from pathlib import Path
path = Path(directory)
for file in path.glob('**/*'+filetype):
yield str(file.name)

Loading…
Cancel
Save