一、创建表 创建模型 创建名为book的app,在book下的models.py中创建模型: from django.db import models # Create your models here. class Book(models.Model): id=models.AutoField(p ...
分类:
数据库 时间:
2021-04-10 13:08:36
阅读次数:
0
代码 # -*- coding: utf-8 -*- from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QFrame, QApplication, QMainWindow import sys class Ui_MainW ...
分类:
其他好文 时间:
2021-04-10 13:08:17
阅读次数:
0
watch 对象点属性的监听 watch: { "search.currentPage": function () { this.account2page(); } }, formvalidation remote data 的问题 formvalidation在修改页面验证用户名是否唯一时,传递的 ...
分类:
其他好文 时间:
2021-04-10 13:06:54
阅读次数:
0
from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped ...
分类:
数据库 时间:
2021-04-10 13:00:24
阅读次数:
0
#tdsql(noshard) 到 tdsql(noshard) (一般不建议这样导,tdsql 内部建议用多源同步) 如果是导入到tdsql shard 中需要提创建表,指定shardkey 在mysqlagent 导出指定proxy ip 和端口: cd /data/tdsql_run/4002 ...
分类:
数据库 时间:
2021-04-10 12:57:25
阅读次数:
0
1.安装 npm install animate.css@3.7.2 --save 2.引入 main.js中: import animated from 'animate.css' Vue.use(animated) 3.使用 vue文件中: <!-- 直接使用animated中的动画class名 ...
分类:
其他好文 时间:
2021-04-10 12:54:36
阅读次数:
0
var arr =["George","John","Thomas","James","Adrew","Martin"] let mm = arr.splice(2,3) console.log(arr) // 结果 ["George","John","Martin"] 如果arr不赋给某个值,直接 ...
分类:
Web程序 时间:
2021-04-09 13:41:43
阅读次数:
0
import math import random import matplotlib.pyplot as plt import time limitx=300000 limity=300000 threshold=2 data=[] datax=[] datay=[] datanum=20000 ...
分类:
其他好文 时间:
2021-04-09 13:41:22
阅读次数:
0
<template> <div>{{propContent}}</div> </template> <script> import { watchEffect, watch, ref } from "vue"; export default { name: "", components: {}, m ...
分类:
其他好文 时间:
2021-04-09 13:36:07
阅读次数:
0
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <select id="province"> <option value ="">北京</option> </select> </bo ...
分类:
Web程序 时间:
2021-04-09 13:32:22
阅读次数:
0