V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
luckyy
V2EX  ›  问与答

Python 自定义命令 BaseCommand 提示: Using proactor: IocpProactor

  •  
  •   luckyy · 2020-08-18 11:03:48 +08:00 · 1091 次点击
    这是一个创建于 1340 天前的主题,其中的信息可能已经有所发展或是发生改变。

    class Command(BaseCommand): def handle(self, *args, **options): with open('user.json', 'a', encoding='utf-8') as f: f.write(json.dumps({'name': name, 'phone': phone, 'sex': sex_code[sex], 'birthday': birthday, 'profession': profession_code[profession], 'region': region.code, 'corporation_type': corporation_code[corporation_type], 'corporation': corporation, 'title': title_code[title] }, ensure_ascii=False) + '\n')

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2921 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:59 · PVG 10:59 · LAX 19:59 · JFK 22:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.