摘要: 安装 marshmallow pip install marshmallow 基本使用 demo.py """ # python 序列化 - 序列化:对象转化为字典 - 反序列化: 字典转化为对象 """ from marshmallow import fields, post_load, Sche 阅读全文
posted @ 2021-05-15 23:36 kitai 阅读(187) 评论(0) 推荐(0)
摘要: 准备数据 创建表 -- 创建数据库 create database test charset=utf8; -- 使用数据库 use test; -- students表 create table students( id int unsigned primary key auto_increment 阅读全文
posted @ 2021-05-15 23:08 kitai 阅读(49) 评论(0) 推荐(0)
摘要: SQLalchemy 基本使用 安装 SQLAlchemy pip install SQLalchemy 使用实例 结合这篇内容准备DB和数据 - MySQL 初步学习 model.py # coding: utf-8 from sqlalchemy import Column, DECIMAL, 阅读全文
posted @ 2021-05-15 23:00 kitai 阅读(63) 评论(1) 推荐(0)
摘要: cc 阅读全文
posted @ 2021-05-15 21:06 kitai 阅读(27) 评论(0) 推荐(0)