1 # r 读 2 f = open('十多年',mode='r',encoding='utf-8') 3 re = f.read() 4 print(re) 5 f.close() 6 7 # w 写 8 f = open('miaoge.txt',mode='w',encoding='utf-8 ...
分类:
其他好文 时间:
2020-07-20 13:21:47
阅读次数:
285
第一部分 #主要app from flask import Flask,render_templateimport configfrom exts import dbfrom models import User,Article,Tag#导入蓝图from articleview import art ...
分类:
Web程序 时间:
2020-07-20 13:12:34
阅读次数:
93
flask中一般使用flask-sqlalchemy来操作数据库,使用起来比较简单,易于操作。 安装 pip install flask-sqlalchemy 配置 配置选项说明 SQLALCHEMY_DATABASE_URI 连接数据库。示例:mysql://username:password@h ...
分类:
数据库 时间:
2020-07-19 23:38:25
阅读次数:
110
一、简介 生成API文档平台 自动生成测试代码 支持接口测试 二、安装 coreapi(必须) Pygments(可选) MarkDown(可选) pip install -i https://pypi.douban.com/simple coreapi pip install -i https:/ ...
分类:
其他好文 时间:
2020-07-19 23:05:53
阅读次数:
196
Basic Transformations in Edit Mode import bpy import bmesh # Must start in object mode # Script will fail if scene is empty bpy.ops.object.mode_set(mo ...
分类:
其他好文 时间:
2020-07-19 15:57:11
阅读次数:
75
django的Form组件主要实现的功能: 1、渲染html代码(不用手写相关前端表单代码) 2、校验数据 3、展示提示信息 Form组件的定义 以注册功能为例 from django import forms class RegForm(forms.Form): user = forms.Char ...
分类:
其他好文 时间:
2020-07-19 11:23:06
阅读次数:
71
Web项目启动的关键-web.xml的配置servlet 部署Web应用的关键 web.xml简介 web.xml位于每个WEB-INF路径下,在Servlet2.5规范之前,每个应用都必须包含一个web.xml文件,且必须放在WEB-INF路径下。 web.xml的详细配置 有关web.xml文件 ...
分类:
Web程序 时间:
2020-07-19 00:46:03
阅读次数:
94
Life Cycle Stages The following table lists the stages of the ASP.NET application life cycle with Integrated mode in IIS 7.0. 1.A request is made for ...
分类:
其他好文 时间:
2020-07-19 00:41:52
阅读次数:
70
一般情况下,对来自浏览器的请求的拦截,是利用Filter实现的 而在Spring中,基于Filter这种方式可以实现Bean预处理、后处理。 比如注入FilterRegistrationBean,然后在这个Bean上传递自己继承Filter实现的自定义Filter进入即可。 而Spring MVC也 ...
分类:
编程语言 时间:
2020-07-19 00:31:58
阅读次数:
82
<el-form :model="form" :rules="rules"> <el-form-item prop="input"> <el-input v-model="form.input"></el-input> </el-form-item> </el-form> 如上面的代码 1、标签绑定 ...
分类:
其他好文 时间:
2020-07-18 22:30:34
阅读次数:
124