摘要: ```python import queue import threading import time def produce(q: queue.Queue): thread_name = threading.current_thread().getName() for i in range(10): print("生产者[%s]--- %d" % (threa... 阅读全文
posted @ 2019-07-08 15:07 加州风尘 阅读(238) 评论(0) 推荐(0)
摘要: ```python def test(a, *args, **kwargs): print a print args print kwargs if __name__ == "__main__": test(1, 2, 3 , d='4', e=5) # 输出 1 (2, 3) {'e': 5, 'd': '4'} ``` 阅读全文
posted @ 2019-07-08 10:07 加州风尘 阅读(2990) 评论(0) 推荐(1)