配置项 为了方便的图片的保存与展示,可以在 配置文件中,指明 图片资源的路径 1 import os 2 ? 3 ? 4 class Config(object): 5 DEBUG = True 6 SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@127. ...
分类:
其他好文 时间:
2021-06-15 18:16:21
阅读次数:
0
在我们初学vue3.0,修改vue-cli生成的HellowWorld.vue文件时就会出现这种报错(很容易才到这个坑)Compiled with 1 warnings:Module Warning (from ./node_modules/eslint-loader/index.js):warni ...
分类:
其他好文 时间:
2021-06-15 18:15:46
阅读次数:
0
from sqlalchemy import Column,String,create_engine,MetaData from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative ...
分类:
数据库 时间:
2021-06-15 18:05:12
阅读次数:
0
nodejs端实现模块化的方式通常是通过commonjs,使用模块化可以复用js代码,使得逻辑结构更为清晰。 commonjs的语法规则如下通过 module.exports 或者 exports 导出,通过 require函数来导入 // a.js 导出内容 const name = 'alice ...
分类:
Web程序 时间:
2021-06-15 17:57:25
阅读次数:
0
正则表达式中,group()用来提出分组截获的字符串,()用来分组 例如: 1 import re 2 a = "123abc456" 3 print re.search( "([0-9]*)([a-z]*)([0-9]*)" ,a).group( 0 ) #123abc456,返回整体 4 pri ...
分类:
编程语言 时间:
2021-06-15 17:51:42
阅读次数:
0
OSCP Security Technology - Network Scanning(2) Scanning with Nessus https://www.tenable.com/downloads/nessus?loginAttempted=true#nessus-8.14.0 sudo dp ...
分类:
Web程序 时间:
2021-06-15 17:38:32
阅读次数:
0
from turtle import * def square(size=50, rbg='blue'): pencolor(rbg) for i in range(4): fd(size) left(90) setup(800,600) speed(0) for i in range(10): s ...
分类:
其他好文 时间:
2021-06-15 17:36:49
阅读次数:
0
from matplotlib import pyplot as mp import tensorflow as tf from tensorflow import keras from tensorflow.keras import datasets ,layers ,optimizers def ...
分类:
其他好文 时间:
2021-06-15 17:35:48
阅读次数:
0
import redisr = redis.Redis(host="0.0.3.40",password="123123&*",port=6379,db=4,decode_responses=True)#字符 string k-v#哈希 hash#字符串 string k-v {"name":111 ...
分类:
编程语言 时间:
2021-06-13 10:56:05
阅读次数:
0
CBV 基于类的视图 FBV 基于函数的视图 CBV: 1 项目目录下: 2 urlpatterns = [ 3 path('login1/',views.Login.as_view()) #.as_view()固定格式,自 4 ] 5 #.as_view()固定格式,自匹配类中的下面的方法(须自定 ...
分类:
其他好文 时间:
2021-06-13 10:43:11
阅读次数:
0