上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页
摘要: #encoding: utf-8 from sqlalchemy import create_engine,Column,Integer,String,Float,func from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from random imp... 阅读全文
posted @ 2018-09-23 00:02 python成长中 阅读(15596) 评论(0) 推荐(0)
摘要: #encoding: utf-8 from sqlalchemy import create_engine,Column,Integer,String,DateTime from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker HOSTNAME = '127.... 阅读全文
posted @ 2018-09-22 22:14 python成长中 阅读(8986) 评论(1) 推荐(0)
摘要: #encoding: utf-8 from sqlalchemy import create_engine,Column,Integer,String,\ Float,Boolean,DECIMAL,Enum,Date,DateTime,Time,Text from sqlalchemy.dialects.mysql import LONGTEXT from sqlalch... 阅读全文
posted @ 2018-09-22 21:19 python成长中 阅读(936) 评论(0) 推荐(0)
摘要: python前面,面向对象 增加: 查: 改: 删: ### 用session做数据的增删改查操作:1. 构建session对象:所有和数据库的ORM操作都必须通过一个叫做`session`的会话对象来实现,通过以下代码来获取会话对象: ```python from sqlalchemy.orm i 阅读全文
posted @ 2018-09-22 10:41 python成长中 阅读(6805) 评论(0) 推荐(0)
摘要: from sqlalchemy import create_engine,Column,Integer,String from sqlalchemy.ext.declarative import declarative_base HOSTNAME = '127.0.0.1' PORT = 3306 DATABASE = 'first_sqlalchemy' USERNAME = 'roo... 阅读全文
posted @ 2018-09-21 21:49 python成长中 阅读(424) 评论(0) 推荐(1)
摘要: from sqlalchemy import create_engineHOSTNAME = '127.0.0.1'PORT = 3306DATABASE = 'first_sqlalchemy'USERNAME = 'root'PASSWORD = '123456'#dialect+driver: 阅读全文
posted @ 2018-09-21 19:22 python成长中 阅读(219) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2018-09-21 18:23 python成长中 阅读(119) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-21 15:51 python成长中 阅读(162) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-21 11:20 python成长中 阅读(220) 评论(0) 推荐(0)
摘要: from flask import Flask,Blueprint from blueprints.users import user_dp from blueprints.news import news_pb app = Flask(__name__) app.register_blueprin 阅读全文
posted @ 2018-09-21 00:15 python成长中 阅读(367) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页