Browse Source

print output in a single object

David 9 năm trước cách đây
mục cha
commit
024a9eba7c
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      tati.py

+ 3 - 1
tati.py

@@ -85,5 +85,7 @@ if __name__ == '__main__':
     av.join()
     al.join()
 
+    out = {}
     while not q.empty():
-        print(q.get())
+        out.update(q.get())
+    print(out)