There was an error while loading. Please reload this page.
1 parent 801138c commit 1cd2587Copy full SHA for 1cd2587
1 file changed
implement-shell-tools/wc/wc.py
@@ -39,7 +39,10 @@
39
for key, value in results.items():
40
total_results[key] = total_results.get(key, 0) + value
41
42
- print(" ".join(map(str, results.values())), path)
+ # print(" ".join(map(str, results.values())), path)
43
+ print(" ".join(f"{value:>4}" for value in results.values())," ",path)
44
45
if len(paths) > 1:
- print(" ".join(map(str, total_results.values())), "total")
46
+ # print(" ".join(map(str, total_results.values())), "total")
47
+ print(" ".join(f"{value:>4}" for value in total_results.values())," total")
48
+
0 commit comments