01 2022 档案
摘要:练习一 表名: Movies Id Title Director Year Length_minutes 1 Toy Story John Lasseter 1995 81 2 A Bug's Life John Lasseter 1998 95 3 Toy Story 2 John Lassete
阅读全文
摘要:测试项目配置好JWT身份验证后,项目启动不了了,出现CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False. 但是setting.py文件夹没有更改DEBUG设置 DEBUG = TrueALLOWED_HOSTS =
阅读全文
摘要:环境pycharm2021.1.1+python3.7+django3.2.11 测试项目时,打开python控制台出现django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install
阅读全文
摘要:题目: 雉兔各几何? 今有雉兔同笼,上有三十五头,下有九十四足,问雉兔各几何?输出示例: 雉兔同笼,兔有12只,雉有23只 rabbits = [x for x in range(1, 36) if x * 4 + (35 - x) * 2 == 94] print('雉兔同笼,兔有%d只,雉有%d
阅读全文
摘要:新建Django项目,使用python manage.py runserver命令运行时,提示 You have 18 unapplied migration(s). Your project may not work properly until youapply the migrations f
阅读全文