luckyy
V2EX  ›  问与答

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

  •  
  •   luckyy · Aug 18, 2020 · 1828 views
    This topic created in 2102 days ago, the information mentioned may be changed or developed.

    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')

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   975 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:22 · PVG 06:22 · LAX 15:22 · JFK 18:22
    ♥ Do have faith in what you're doing.