# 日志的配置项 LOGGING = { 'version': 1, # 保留字默认就是1 'disable_existing_loggers': False, # 是否禁用Django框架开发的时候已经存在的logger实例 'formatters': { # 格式化器 'standard': { ...
分类:
其他好文 时间:
2020-05-05 18:06:24
阅读次数:
60
基于IP的访问控制 http_access_module(允许哪些IP可以访问,哪些不允许访问) 基于用户的信任登录 http_auth_basic_module(提供登录认证界面,通过登录认证的方式控制访问) 1、http_access_module方式 1)http_access_module ...
分类:
其他好文 时间:
2020-05-05 17:43:36
阅读次数:
59
```bigFile = "File.txt"appendTest = open(bigFile,"r",encoding="utf8")num = 0for i in appendTest: num += 1 if num == 2: i = "".join([i.strip(),"\"+被处理行... ...
分类:
其他好文 时间:
2020-05-05 14:02:51
阅读次数:
59
Configuration (18%) Configuring a Pod to Use a ConfigMap Create a new file named config.txt with the following environment variables as key/value pair ...
分类:
其他好文 时间:
2020-05-05 14:00:47
阅读次数:
69
git add:添加至暂存区,但并未提交至服务器。git add . 是表示把当前目录下的所有更新添加至暂存区。有时在终端操作这个会提示,只是个提示,可以不用管: 原因: 这是因为文件中换行符的差别导致的。这个提示的意思是说:会把windows格式(CRLF(也就是回车换行))转换成Unix格式(L ...
分类:
其他好文 时间:
2020-05-05 13:59:35
阅读次数:
81
一.文件上传的表单页面3个要求: 1.表单上传方式必须为post 2.表单必须有enctype属性,值为multipart/form-data; 3.文件上传的<input>的name属性值必须要file 二.struts2的文件上传 1.在action中定义一个file类型的属性,属性名跟<inp ...
分类:
Web程序 时间:
2020-05-05 12:49:14
阅读次数:
91
该错误出现的原因是因为stm32f10x_conf.h配置文件注释掉了一些头文件。把注释去掉就好啦!!! /* Includes *//* Uncomment/Comment the line below to enable/disable peripheral header file inclus ...
分类:
其他好文 时间:
2020-05-05 11:05:43
阅读次数:
134
FileUtilsDelete.java // 删除文件和文件夹 package com.imooc.bigdata.hadoop.mr.wc; import java.io.File; public class FileUtilsDelete { /** * 删除文件,可以是文件或文件夹 * * ...
分类:
编程语言 时间:
2020-05-05 10:56:33
阅读次数:
68
redhat6.9安装11.2.0.4执行root.sh提示vip资源添加失败CRS-4402,PRCN-2050 节点1执行root.sh OK,节点2执行提示vip资源添加失败!Creating /etc/oratab file... Entries will be added to the / ...
分类:
其他好文 时间:
2020-05-05 10:43:43
阅读次数:
113
一、问题描述 在Pycharm中通过ctrl+鼠标左键进入.py源码文件时,进入的是.pyi文件。 二、问题解决 在Pycharm中进入File-->Settings-->Editor-->Code Style-->File Types中选择Python Stub中: 将上图中移除内容区域中清空即可 ...
分类:
其他好文 时间:
2020-05-05 10:38:05
阅读次数:
167