摘要: 程序代码 1.main ''' 程序入口 ''' import os,sys #建立一个目录 basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #把目录追加到我的路径里 sys.path.append(base 阅读全文
posted @ 2020-12-16 23:56 日月明vx 阅读(266) 评论(0) 推荐(0)
摘要: 5.插入数据 insert into user_type (caption) values ('超级管理员'),('普通管理员'); insert into permission (caption,module,func) values ('添加用户','src.auth.user','add_us 阅读全文
posted @ 2020-12-16 23:33 日月明vx 阅读(237) 评论(0) 推荐(0)
摘要: 通过python和MySQL制作的一个简单的权限管理系统 一:数据库的表设计 1.用户信息表 2.角色表 3.权限表 4.权限和角色对应关系表 表的代码如下: 1.角色表: CREATE TABLE user_type( nid INT PRIMARY KEY NOT NULL AUTO_INCRE 阅读全文
posted @ 2020-12-16 23:25 日月明vx 阅读(323) 评论(0) 推荐(0)