change print readying for pyautogui

master
Bel LaPointe 2022-04-11 20:11:00 -06:00
parent 67296f73e3
commit 302c70800e
1 changed files with 8 additions and 7 deletions

View File

@ -16,13 +16,14 @@ def main():
if not key in buckets:
buckets[key] = False
buckets[key] = False if line[0] == "/" else float(line.split()[-1])
print(
"[",
" ".join(sorted([
"{:2}={}".format(int(100*buckets[i]), i) for i in buckets if buckets[i]
], reverse=True)),
"]",
)
result = sorted([
(int(100*buckets[k]), k) for k in buckets if buckets[k]
], reverse=True)
print("[",
" ".join([
"{}={:2}".format(i[1], i[0]) for i in result
]),
"]")
def get_args():
ap = argparse.ArgumentParser()