上一页 1 ··· 38 39 40 41 42
摘要: Python与JSON(load、loads、dump、dumps) 1.Python中加载JSON 使用loads(string):作用将string类型转为dict字典或dict链表 # 加载配置,configuration_path:配置文件路径 def load_conf(configura 阅读全文
posted @ 2022-04-13 13:43 侬侬发 阅读(168) 评论(0) 推荐(0) 编辑
摘要: url() 函数看起来的格式象:url(r^/account/$', views.index, name=index),它可以接收四个参数,分别是两个必选参数:regex、view 和两个可选参数:kwargs、name,接下来详细介绍这四个参数。 regexregex 代表一个正则表达式,凡是与 阅读全文
posted @ 2022-04-13 10:42 侬侬发 阅读(134) 评论(0) 推荐(0) 编辑
摘要: join函数是一个字符串操作函数 str.join(item)str表示字符串(字符),item表示一个成员,注意括号里必须只能有一个成员,比如’,’.join(‘a’,‘b’)这种写法是行不通的 举个例子:‘,’.join(‘abc’)上面代码的含义是“将字符串abc中的每个成员以字符’,'分隔开 阅读全文
posted @ 2022-04-13 10:37 侬侬发 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 方法1:Terminal命令 python manage.py changepassword admin Password: PY666666 Password (again): PY666666 方法2:shell命令方式对密码进行修改(默认user) from django.contrib.au 阅读全文
posted @ 2022-04-11 15:25 侬侬发 阅读(352) 评论(0) 推荐(0) 编辑
摘要: Django账号密码修改命令: python manage.py changepassword python manage.py changepassword 实操分析: 第一次修改失败是因为违反了密码策略,密码至少8位,且不能全是数字 第二次修改失败是因为密码中包含了账户,导致密码与账号太相似。 阅读全文
posted @ 2022-04-11 14:43 侬侬发 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: @echo off color a net stop spooler net start spooler ping -n 4 localhost >nul 阅读全文
posted @ 2022-04-11 14:28 侬侬发 阅读(126) 评论(0) 推荐(0) 编辑
摘要: PyCharm-汉化、中文语言包、英文语言包、中英文切换 PyCharm的汉化是非常简单的,不需要繁琐的步骤,只需要到设置的插件中搜索你需要的语言包安装即可。 登录 进入项目(随便进入一个项目,新建也可以) File->settings->Plugins->Marketplace->Chinese(Simplified)Language->Install 阅读全文
posted @ 2022-04-11 13:29 侬侬发 阅读(1701) 评论(0) 推荐(0) 编辑
摘要: 命令:python manage.py createsuperuser python manage.py createsuperuser Type 'manage.py help' for usage. (env) E:\pyAPP\sysPro>python manage.py createsup 阅读全文
posted @ 2022-04-11 12:38 侬侬发 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 打开jupyter 查找路径 1 import os 2 a=os.path.abspath('.') 3 print(a) 创建个人文件夹 E:\pyAPP\JupyterWork 查找修改配置文件路径 打开Anaconda Prompt 输入命令jupyter notebook --genera 阅读全文
posted @ 2022-04-08 17:01 侬侬发 阅读(496) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42