上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页

2020年12月7日

python打印出当下的小时、分钟

摘要: #显示python打印出当下的小时、分钟 import datetime #当下的小时h=datetime.datetime.now().hour当下的分钟m = datetime.datetime.now().minute 阅读全文

posted @ 2020-12-07 09:18 袁佳佳 阅读(475) 评论(0) 推荐(0) 编辑

2020年11月27日

flask_ajax登录注册

摘要: Flask_restful。 注册的html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>注册</title> <script src="https://apps.bdimg.com/libs/jquer 阅读全文

posted @ 2020-11-27 16:23 袁佳佳 阅读(652) 评论(0) 推荐(1) 编辑

flask_SQlalchemy的复杂使用

摘要: 1、关联查询、对应sql的join 和 left join 两张表关联查询 User 和 Address表a 后面写条件 例子1、session.query(User,Address).filter(User.id == Address.user_id).all() 例子2、session.quer 阅读全文

posted @ 2020-11-27 11:42 袁佳佳 阅读(138) 评论(0) 推荐(0) 编辑

2020年11月19日

flask使用现有的数据表、在网页中显示数据

摘要: 参考网站:https://blog.csdn.net/qq_42359659/article/details/102983515?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1 阅读全文

posted @ 2020-11-19 15:22 袁佳佳 阅读(1124) 评论(0) 推荐(0) 编辑

2020年11月11日

js 的DOMdocument的使用

摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body>{#<script>#}{# var apple;#}{# var hh = {firstname:"哇咔咔", 阅读全文

posted @ 2020-11-11 17:59 袁佳佳 阅读(155) 评论(0) 推荐(0) 编辑

2020年11月4日

pymysql的是使用

摘要: class Save(): # 构造函数 def __init__(self): self.nn = pymysql.connect(host='127.0.0.1', # 连接名称,默认127.0.0.1 user='root', # 用户名 password='123456', # 密码 por 阅读全文

posted @ 2020-11-04 09:09 袁佳佳 阅读(123) 评论(0) 推荐(0) 编辑

2020年10月29日

通过ajax修改div id="div1" 的值

摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> <script src="js/jquery-2.1.0.js"></script> <script> // $(function() 阅读全文

posted @ 2020-10-29 10:32 袁佳佳 阅读(579) 评论(0) 推荐(0) 编辑

2020年10月15日

关于django2.2使用xadmin的方法

摘要: 参考网址:https://www.cnblogs.com/sinkingcn/p/11301486.html #在主要app的setting下面设置import sys sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))sys.path.insert 阅读全文

posted @ 2020-10-15 09:04 袁佳佳 阅读(403) 评论(0) 推荐(0) 编辑

2020年10月14日

flask 的relationship使用

摘要: #一对多 学生是一 (一个学生有多本书)class Student(db.Model): __tablename__ = "student" id = db.Column(db.Integer,primary_key=True) name = db.Column(db.String(200)) ag 阅读全文

posted @ 2020-10-14 17:44 袁佳佳 阅读(1144) 评论(0) 推荐(0) 编辑

2020年9月24日

flask 数据库多对多(文章和标签)

摘要: from flask import Flaskfrom flask_sqlalchemy import SQLAlchemyimport configapp = Flask(__name__)app.config.from_object(config)db = SQLAlchemy(app)arti 阅读全文

posted @ 2020-09-24 09:25 袁佳佳 阅读(358) 评论(1) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页

导航