2020年5月27日

python 队列Queue

摘要: from Queue import Queue qlist=Queue(maxsize=300) import threading for i in range(20): qlist.put("hello num%d" %(i)) def process_work(qlist): while Tru 阅读全文

posted @ 2020-05-27 23:45 思此狂 阅读(197) 评论(0) 推荐(0)

python 抛出捕获异常

摘要: res_json={ "id": 123456, "ip": "1.2.3.4" } res_str="vpc out limited" def return_val(): return res_str def create_vm(): try: response = return_val() re 阅读全文

posted @ 2020-05-27 22:20 思此狂 阅读(481) 评论(0) 推荐(0)

导航