摘要: run_in_executor asyncio.create_task import asyncio from concurrent.futures import ThreadPoolExecutor def run(cron, *args): loop = asyncio.new_event_lo 阅读全文
posted @ 2024-09-06 18:01 vx_guanchaoguo0 阅读(14) 评论(0) 推荐(0)
摘要: 追加参数 python example.py NewYork LosAngeles Chicago 给参数申明 分配内存 Locations: ['NewYork', 'LosAngeles', 'Chicago'] 具体实现 import argparse parser = argparse.Ar 阅读全文
posted @ 2024-09-06 10:08 vx_guanchaoguo0 阅读(11) 评论(0) 推荐(0)