task 6 and 7
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user